API Reference
Class
NetworkTest
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:
BooleanAttempts a TCP connection to the specified host and port.
Parameters
- host System.String
- Target host (name or IP).
- port System.Int32
- TCP port number.
- timeoutMs System.Int32
- Timeout in milliseconds.
- error System.String@
- Error message when connection fails, otherwise null.
Returns
true when connected within the timeout; otherwise false.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object