Property | Type | Description | |
---|---|---|---|
GetClient | TransportProvider |
||
IsThreadAbortException | bool | ||
MonitorActiveClients | void | ||
ReceiveDataHandler | void |
Method | Description | |
---|---|---|
DisconnectOne ( System.Guid clientID ) : void |
Disconnects the specified connected client.
|
|
LoadSettings ( ) : void |
Loads saved ZeroMQServer settings from the config file if the ServerBase.PersistSettings property is set to true.
|
|
Read ( System.Guid clientID, 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 ServerBase.ReceiveClientData event handler. Calling this method outside this event will have unexpected results. |
|
SaveSettings ( ) : void |
Saves ZeroMQServer settings to the config file if the ServerBase.PersistSettings property is set to true.
|
|
Start ( ) : void |
Starts the ZeroMQServer synchronously and begins accepting client connections asynchronously.
|
|
Stop ( ) : void |
Stops the ZeroMQServer synchronously and disconnects all connected clients.
|
|
TryGetClient ( System.Guid clientID, TransportProvider |
Gets the TransportProvider{Socket} object associated with the specified client ID.
|
|
ZeroMQServer ( ) : System |
Initializes a new instance of the ZeroMQServer class.
|
|
ZeroMQServer ( IContainer container ) : System |
Initializes a new instance of the ZeroMQServer class.
|
|
ZeroMQServer ( string configString ) : System |
Initializes a new instance of the ZeroMQServer class.
|
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Releases the unmanaged resources used by the ZeroMQServer object and optionally releases the managed resources.
|
|
OnClientConnectingException ( |
Raises the ServerBase.ClientConnectingException event.
|
|
OnReceiveClientDataException ( System.Guid clientID, |
Raises the ServerBase.ReceiveClientDataException event.
|
|
OnSendClientDataException ( System.Guid clientID, |
Raises the ServerBase.SendClientDataException event.
|
|
OnUnhandledUserException ( |
Raises the ServerBase.UnhandledUserException event.
|
|
SendDataToAsync ( System.Guid clientID, byte data, int offset, int length ) : |
Sends data to the specified client asynchronously.
|
|
ValidateConfigurationString ( string configurationString ) : void |
Validates the specified configurationString.
|
Method | Description | |
---|---|---|
GetClient ( System.Guid clientID ) : TransportProvider |
||
IsThreadAbortException ( |
||
MonitorActiveClients ( object state ) : void | ||
ReceiveDataHandler ( ) : void |
public DisconnectOne ( System.Guid clientID ) : void | ||
clientID | System.Guid | ID of the client to be disconnected. |
return | void |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
return | void |
protected OnClientConnectingException ( |
||
ex | The |
|
return | void |
protected OnReceiveClientDataException ( System.Guid clientID, |
||
clientID | System.Guid | ID of client to send to |
ex | Exception to send to |
|
return | void |
protected OnSendClientDataException ( System.Guid clientID, |
||
clientID | System.Guid | ID of client to send to |
ex | Exception to send to |
|
return | void |
protected OnUnhandledUserException ( |
||
ex | Exception to send to |
|
return | void |
public Read ( System.Guid clientID, byte buffer, int startIndex, int length ) : int | ||
clientID | System.Guid | ID of the client from which data buffer should be read. |
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 SendDataToAsync ( System.Guid clientID, byte data, int offset, int length ) : |
||
clientID | System.Guid | ID of the client to which the data is to be sent. |
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 |
public TryGetClient ( System.Guid clientID, TransportProvider |
||
clientID | System.Guid | ID of the client. |
clientInfo | TransportProvider |
Client information. |
return | bool |
protected ValidateConfigurationString ( string configurationString ) : void | ||
configurationString | string | Configuration string to be validated. |
return | void |
public ZeroMQServer ( IContainer container ) : System | ||
container | IContainer | |
return | System |
public ZeroMQServer ( string configString ) : System | ||
configString | string | Config string of the |
return | System |