Свойство | Type | Description | |
---|---|---|---|
NetMQBeacon | System | ||
Receive | byte[] | ||
ReceiveString | string |
Méthode | Description | |
---|---|---|
Configure ( [ interfaceName, int port ) : void |
Configure beacon to bind to specific interface
|
|
Configure ( int port ) : void |
Configure beacon to bind to default interface
|
|
ConfigureAllInterfaces ( int port ) : void |
Configure beacon to bind to all interfaces
|
|
Dispose ( ) : void |
Release any contained resources.
|
|
NetMQBeacon ( ) : System |
Create a new NetMQBeacon.
|
|
Publish ( [ transmit ) : void |
Publish beacon immediately and continue to publish every second
|
|
Publish ( [ transmit, System.TimeSpan interval ) : void |
Publish beacon immediately and continue to publish when interval elapsed
|
|
Silence ( ) : void |
Stop publish messages
|
|
Subscribe ( [ filter ) : void |
Subscribe to beacon messages, will replace last subscribe call
|
|
TryReceiveString ( System.TimeSpan timeout, string &peerName, string &message ) : bool |
Attempt to receive a message from the specified peer for the specified amount of time.
|
|
Unsubscribe ( ) : void |
Unsubscribe to beacon messages
|
Méthode | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Release any contained resources.
|
Méthode | Description | |
---|---|---|
NetMQBeacon ( [ context ) : System | ||
Receive ( string &peerName ) : byte[] | ||
ReceiveString ( string &peerName ) : string |
public Configure ( [ interfaceName, int port ) : void | ||
interfaceName | [ | One of the ip address of the interface |
port | int | Port to bind to |
Résultat | void |
public Configure ( int port ) : void | ||
port | int | Port to bind to |
Résultat | void |
public ConfigureAllInterfaces ( int port ) : void | ||
port | int | Port to bind to |
Résultat | void |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | true if managed resources are to be released |
Résultat | void |
public Publish ( [ transmit ) : void | ||
transmit | [ | Beacon to transmit |
Résultat | void |
public Publish ( [ transmit, System.TimeSpan interval ) : void | ||
transmit | [ | Beacon to transmit |
interval | System.TimeSpan | Interval to transmit beacon |
Résultat | void |
public Subscribe ( [ filter ) : void | ||
filter | [ | Beacon will be filtered by this |
Résultat | void |
public TryReceiveString ( System.TimeSpan timeout, string &peerName, string &message ) : bool | ||
timeout | System.TimeSpan | The maximum amount of time the call should wait for a message before returning. |
peerName | string | the name of the peer that the message comes from is written to this string |
message | string | the string to write the received message into |
Résultat | bool |