C# 클래스 NetMQ.NetMQBeacon

상속: IDisposable, ISocketPollable
파일 보기 프로젝트 열기: NetMQ/NetMQ3-x 1 사용 예제들

Private Properties

프로퍼티 타입 설명
NetMQBeacon System
Receive byte[]
ReceiveString string

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Release any contained resources.

비공개 메소드들

메소드 설명
NetMQBeacon ( [ context ) : System
Receive ( string &peerName ) : byte[]
ReceiveString ( string &peerName ) : string

메소드 상세

Configure() 공개 메소드

Configure beacon to bind to specific interface
public Configure ( [ interfaceName, int port ) : void
interfaceName [ One of the ip address of the interface
port int Port to bind to
리턴 void

Configure() 공개 메소드

Configure beacon to bind to default interface
public Configure ( int port ) : void
port int Port to bind to
리턴 void

ConfigureAllInterfaces() 공개 메소드

Configure beacon to bind to all interfaces
public ConfigureAllInterfaces ( int port ) : void
port int Port to bind to
리턴 void

Dispose() 공개 메소드

Release any contained resources.
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

Release any contained resources.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources are to be released
리턴 void

NetMQBeacon() 공개 메소드

Create a new NetMQBeacon.
public NetMQBeacon ( ) : System
리턴 System

Publish() 공개 메소드

Publish beacon immediately and continue to publish every second
public Publish ( [ transmit ) : void
transmit [ Beacon to transmit
리턴 void

Publish() 공개 메소드

Publish beacon immediately and continue to publish when interval elapsed
public Publish ( [ transmit, System.TimeSpan interval ) : void
transmit [ Beacon to transmit
interval System.TimeSpan Interval to transmit beacon
리턴 void

Silence() 공개 메소드

Stop publish messages
public Silence ( ) : void
리턴 void

Subscribe() 공개 메소드

Subscribe to beacon messages, will replace last subscribe call
public Subscribe ( [ filter ) : void
filter [ Beacon will be filtered by this
리턴 void

TryReceiveString() 공개 메소드

Attempt to receive a message from the specified peer for the specified amount of time.
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
리턴 bool

Unsubscribe() 공개 메소드

Unsubscribe to beacon messages
public Unsubscribe ( ) : void
리턴 void