TsgcTCPClient › Methods

TsgcTCPClient Methods

Public methods grouped by purpose, followed by the full alphabetical list.

Connection

NameDescription
ConnectOpens the TCP connection synchronously and blocks the caller until the socket is connected or the timeout elapses.
ConnectedQueries the underlying socket to determine whether the client is currently connected to the server.
DisconnectCloses the TCP connection synchronously and blocks the caller until the socket is closed or the timeout elapses.
StartConnects to the server asynchronously from a secondary thread so the calling thread is not blocked.
StopDisconnects from the server asynchronously from a secondary thread so the calling thread is not blocked.

Messaging

NameDescription
WriteDataSends a text or binary message to the TCP server over the raw socket.
WriteAndWaitDataSends a message and blocks the caller until the server responds with a matching reply or the timeout elapses.

All Methods (alphabetical)

NameDescription
ConnectOpens the TCP connection synchronously and blocks the caller until the socket is connected or the timeout elapses.
ConnectedQueries the underlying socket to determine whether the client is currently connected to the server.
DisconnectCloses the TCP connection synchronously and blocks the caller until the socket is closed or the timeout elapses.
StartConnects to the server asynchronously from a secondary thread so the calling thread is not blocked.
StopDisconnects from the server asynchronously from a secondary thread so the calling thread is not blocked.
WriteAndWaitDataSends a message and blocks the caller until the server responds with a matching reply or the timeout elapses.
WriteDataSends a text or binary message to the TCP server over the raw socket.