TestimoX

API Reference

Class

NetworkTest

Namespace ComputerX.Network
Assembly ComputerX
Modifiers static

Lightweight network tests (e.g., TCP connectivity) for quick diagnostics.

Inheritance

  • Object
  • NetworkTest

Methods

public static Boolean TestTcp(String host, Int32 port, Int32 timeoutMs, out String error) #
Returns: Boolean

Attempts a TCP connection to the specified host and port.

Parameters

host System.String requiredposition: 0
Target host (name or IP).
port System.Int32 requiredposition: 1
TCP port number.
timeoutMs System.Int32 requiredposition: 2
Timeout in milliseconds.
error System.String@ requiredposition: 3
Error message when connection fails, otherwise null.

Returns

true when connected within the timeout; otherwise false.