Property | Type | Description | |
---|---|---|---|
OpenSocket | void | ||
ReceiveDataHandler | void |
Method | Description | |
---|---|---|
ConnectAsync ( ) : |
Connects the ZeroMQClient to the server asynchronously.
|
|
Disconnect ( ) : void |
Disconnects the ZeroMQClient from the connected server synchronously.
|
|
LoadSettings ( ) : void |
Loads saved TcpClient settings from the config file if the ClientBase.PersistSettings property is set to true.
|
|
Read ( byte buffer, int startIndex, int length ) : int |
Reads a number of bytes from the current received data buffer and writes those bytes into a byte array at the specified offset. This function should only be called from within the ClientBase.ReceiveData event handler. Calling this method outside this event will have unexpected results. |
|
SaveSettings ( ) : void |
Saves TcpClient settings to the config file if the ClientBase.PersistSettings property is set to true.
|
|
ZeroMQClient ( ) : System |
Initializes a new instance of the ZeroMQClient class.
|
|
ZeroMQClient ( IContainer container ) : System |
Initializes a new instance of the ZeroMQClient class.
|
|
ZeroMQClient ( string connectString ) : System |
Initializes a new instance of the ZeroMQClient class.
|
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Releases the unmanaged resources used by the ZeroMQClient and optionally releases the managed resources.
|
|
OnConnectionException ( |
Raises the ClientBase.ConnectionException event.
|
|
OnDisconnectException ( |
Raises the ClientBase.SendDataException event for disconnect exceptions.
|
|
OnReceiveDataException ( |
Raises the ClientBase.ReceiveDataException event.
|
|
OnSendDataException ( |
Raises the ClientBase.SendDataException event.
|
|
OnUnhandledUserException ( |
Raises the ClientBase.UnhandledUserException event.
|
|
SendDataAsync ( byte data, int offset, int length ) : |
Sends data to the server asynchronously.
|
|
ValidateConnectionString ( string connectionString ) : void |
Validates the specified connectionString.
|
Method | Description | |
---|---|---|
OpenSocket ( object state ) : void | ||
ReceiveDataHandler ( ) : void |
public ConnectAsync ( ) : |
||
return |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
return | void |
protected OnConnectionException ( |
||
ex | Exception to send to |
|
return | void |
protected OnDisconnectException ( |
||
ex | Disconnect exception to send to |
|
return | void |
protected OnReceiveDataException ( |
||
ex | Exception to send to |
|
return | void |
protected OnSendDataException ( |
||
ex | Exception to send to |
|
return | void |
protected OnUnhandledUserException ( |
||
ex | Exception to send to |
|
return | void |
public Read ( byte buffer, int startIndex, int length ) : int | ||
buffer | byte | Destination buffer used to hold copied bytes. |
startIndex | int | 0-based starting index into destination |
length | int | The number of bytes to read from current received data buffer and write into |
return | int |
protected SendDataAsync ( byte data, int offset, int length ) : |
||
data | byte | The buffer that contains the binary data to be sent. |
offset | int | The zero-based position in the |
length | int | The number of bytes to be sent from |
return |
protected ValidateConnectionString ( string connectionString ) : void | ||
connectionString | string | Connection string to be validated. |
return | void |
public ZeroMQClient ( IContainer container ) : System | ||
container | IContainer | |
return | System |
public ZeroMQClient ( string connectString ) : System | ||
connectString | string | Connect string of the |
return | System |