TsgcTCPClient › Methods
Public methods grouped by purpose, followed by the full alphabetical list.
| Name | Description |
|---|---|
| Connect | Opens the TCP connection synchronously and blocks the caller until the socket is connected or the timeout elapses. |
| Connected | Queries the underlying socket to determine whether the client is currently connected to the server. |
| Disconnect | Closes the TCP connection synchronously and blocks the caller until the socket is closed or the timeout elapses. |
| Start | Connects to the server asynchronously from a secondary thread so the calling thread is not blocked. |
| Stop | Disconnects from the server asynchronously from a secondary thread so the calling thread is not blocked. |
| Name | Description |
|---|---|
| WriteData | Sends a text or binary message to the TCP server over the raw socket. |
| WriteAndWaitData | Sends a message and blocks the caller until the server responds with a matching reply or the timeout elapses. |
| Name | Description |
|---|---|
| Connect | Opens the TCP connection synchronously and blocks the caller until the socket is connected or the timeout elapses. |
| Connected | Queries the underlying socket to determine whether the client is currently connected to the server. |
| Disconnect | Closes the TCP connection synchronously and blocks the caller until the socket is closed or the timeout elapses. |
| Start | Connects to the server asynchronously from a secondary thread so the calling thread is not blocked. |
| Stop | Disconnects from the server asynchronously from a secondary thread so the calling thread is not blocked. |
| WriteAndWaitData | Sends a message and blocks the caller until the server responds with a matching reply or the timeout elapses. |
| WriteData | Sends a text or binary message to the TCP server over the raw socket. |