Свойство | Type | Description | |
---|---|---|---|
BackendSocket | NetMQSocket | ||
FrontendSocket | NetMQSocket |
Méthode | Description | |
---|---|---|
Initialize ( ) : void |
Configure the frontend and backend sockets and then Start this device.
|
|
Run ( ) : void |
Initiate operation of the Poller associated with this device, if this device owns it. This also sets IsRunning to true.
|
|
Start ( ) : void | ||
Stop ( bool waitForCloseToComplete = true ) : void |
Stop the device and safely close the underlying sockets.
|
Méthode | Description | |
---|---|---|
BackendHandler ( object sender, NetMQSocketEventArgs args ) : void |
Invoked when a message has been received by the backend socket.
|
|
DeviceBase ( INetMQPoller poller, [ frontendSocket, [ backendSocket, DeviceMode mode ) : System |
Create a new instance of the DeviceBase class.
|
|
DeviceBase ( NetMQSocket frontendSocket, NetMQSocket backendSocket, DeviceMode mode ) : System |
Create a new instance of the DeviceBase class.
|
|
FrontendHandler ( object sender, NetMQSocketEventArgs args ) : void |
Invoked when a message has been received by the frontend socket.
|
protected BackendHandler ( object sender, NetMQSocketEventArgs args ) : void | ||
sender | object | the object that raised the ReceiveReady event |
args | NetMQSocketEventArgs | a NetMQSocketEventArgs that contains a Socket for receiving data from |
Résultat | void |
protected DeviceBase ( INetMQPoller poller, [ frontendSocket, [ backendSocket, DeviceMode mode ) : System | ||
poller | INetMQPoller | the |
frontendSocket | [ |
/// A |
backendSocket | [ |
/// A |
mode | DeviceMode | the |
Résultat | System |
protected DeviceBase ( NetMQSocket frontendSocket, NetMQSocket backendSocket, DeviceMode mode ) : System | ||
frontendSocket | NetMQSocket |
/// A |
backendSocket | NetMQSocket |
/// A |
mode | DeviceMode | the |
Résultat | System |
protected abstract FrontendHandler ( object sender, NetMQSocketEventArgs args ) : void | ||
sender | object | the object that raised the ReceiveReady event |
args | NetMQSocketEventArgs | a NetMQSocketEventArgs that contains a Socket for receiving data from |
Résultat | void |
public Stop ( bool waitForCloseToComplete = true ) : void | ||
waitForCloseToComplete | bool | If true, this method will block until the /// underlying poller is fully stopped. Defaults to true. |
Résultat | void |