TCP client helper. Class instance accessor: TcpClient
More...
|
| bool | IsConnected [get] |
| | Gets a value indicating whether the connection to the service is estabilished.
|
| |
| string | EndOfLine [get, set] |
| | Gets or sets the end of line delimiter used in text messaging.
|
| |
TCP client helper. Class instance accessor: TcpClient
◆ Service()
Sets the server address to connect to.
- Returns
- TcpClientHelper.
- Parameters
-
| address | Host DNS or IP address. |
◆ Connect()
Connects to the server using the specified port.
- Parameters
-
◆ SendMessage() [1/2]
| void SendMessage |
( |
string |
message | ) |
|
Sends a string message.
- Parameters
-
◆ SendMessage() [2/2]
| void SendMessage |
( |
byte[] |
message | ) |
|
Sends a raw data message.
- Parameters
-
◆ OnStringReceived()
Sets the function to call when a new string message is received.
- Parameters
-
| receivedAction | Function or inline delegate. |
◆ OnMessageReceived()
Sets the function to call when a new raw message is received.
- Parameters
-
| receivedAction | Function or inline delegate. |
◆ OnStatusChanged()
Sets the function to call when the status of the connection changes.
- Parameters
-
| statusChangeAction | Function or inline delegate. |
◆ IsConnected
Gets a value indicating whether the connection to the service is estabilished.
true if connected; otherwise, false.
◆ EndOfLine
Gets or sets the end of line delimiter used in text messaging.
The end of line.
The documentation for this class was generated from the following file: