Base class for TCP Client.
More...
|
|
bool | Connected [get] |
| |
|
string | Address [get] |
| |
|
int | Port [get] |
| |
| RemoteCertificateValidationCallback | CertificateValidationCallback [get, set] |
| | Callback function used to determine if the remote certificate is valid. More...
|
| |
Base class for TCP Client.
Definition at line 19 of file Client.cs.
◆ AddExceptionHandler()
Adds an exception handler to the client.
- Parameters
-
| handler | Exception handler to be added. |
- Returns
- This client object.
Definition at line 120 of file Client.cs.
◆ AddHandler()
Adds a handler onto the client.
- Parameters
-
| handler | Connection handler object. |
- Returns
- This client object.
Definition at line 110 of file Client.cs.
◆ AddLogger()
Adds a logger onto the client.
- Parameters
-
| logger | Logger to be added. |
- Returns
- This client object.
Definition at line 130 of file Client.cs.
◆ Connect()
| bool MTSC.Client.Client.Connect |
( |
| ) |
|
Attemps to connect to the specified server.
- Returns
- True if connection was successful.
Definition at line 143 of file Client.cs.
◆ ConnectAsync()
| Task<bool> MTSC.Client.Client.ConnectAsync |
( |
| ) |
|
Attempts to connect to the specified server.
- Returns
- True if the connection was successful.
Definition at line 193 of file Client.cs.
◆ Disconnect()
| void MTSC.Client.Client.Disconnect |
( |
| ) |
|
Disconnects from the server.
Definition at line 200 of file Client.cs.
◆ Log()
| void MTSC.Client.Client.Log |
( |
string |
log | ) |
|
Logs the message onto the associated loggers.
- Parameters
-
Definition at line 67 of file Client.cs.
◆ LogDebug()
| void MTSC.Client.Client.LogDebug |
( |
string |
debugMessage | ) |
|
Logs the debug message onto the associated loggers.
- Parameters
-
Definition at line 78 of file Client.cs.
◆ QueueMessage()
| void MTSC.Client.Client.QueueMessage |
( |
byte [] |
message | ) |
|
Add a message to the message queue.
- Parameters
-
Definition at line 59 of file Client.cs.
◆ SetPort()
| Client MTSC.Client.Client.SetPort |
( |
int |
port | ) |
|
Sets the server port.
- Parameters
-
- Returns
- This client object.
Definition at line 100 of file Client.cs.
◆ SetServerAddress()
| Client MTSC.Client.Client.SetServerAddress |
( |
string |
address | ) |
|
Sets the server address.
- Parameters
-
| address | Address of the server. |
- Returns
- This client object.
Definition at line 90 of file Client.cs.
◆ CertificateValidationCallback
| RemoteCertificateValidationCallback MTSC.Client.Client.CertificateValidationCallback |
|
getset |
Callback function used to determine if the remote certificate is valid.
Definition at line 138 of file Client.cs.
The documentation for this class was generated from the following file: