C# 클래스 NetMQ.Devices.ForwarderDevice

Collects messages from a set of publishers and forwards these to a set of subscribers.
Generally used to bridge networks. E.g. read on TCP unicast and forward on multicast. This device is part of the publish-subscribe pattern. The frontend speaks to publishers and the backend speaks to subscribers. In order to use the ForwarderDevice please make sure you subscribe the FrontendSocket using the ForwarderDevice.FrontendSetup.
상속: DeviceBase
파일 보기 프로젝트 열기: NetMQ/NetMQ3-x

공개 메소드들

메소드 설명
ForwarderDevice ( INetMQPoller poller, string frontendBindAddress, string backendBindAddress, DeviceMode mode = DeviceMode.Threaded ) : System

Initializes a new instance of the ForwarderDevice class.

ForwarderDevice ( string frontendBindAddress, string backendBindAddress, DeviceMode mode = DeviceMode.Threaded ) : System

Initializes a new instance of the ForwarderDevice class.

보호된 메소드들

메소드 설명
FrontendHandler ( object sender, NetMQSocketEventArgs args ) : void

This override of FrontendHandler receives data from the socket contained within args, and Sends it to BackendSocket.

비공개 메소드들

메소드 설명
ForwarderDevice ( NetMQContext context, INetMQPoller poller, string frontendBindAddress, string backendBindAddress, DeviceMode mode = DeviceMode.Threaded ) : System
ForwarderDevice ( NetMQContext context, string frontendBindAddress, string backendBindAddress, DeviceMode mode = DeviceMode.Threaded ) : System

메소드 상세

ForwarderDevice() 공개 메소드

Initializes a new instance of the ForwarderDevice class.
public ForwarderDevice ( INetMQPoller poller, string frontendBindAddress, string backendBindAddress, DeviceMode mode = DeviceMode.Threaded ) : System
poller INetMQPoller The to use.
frontendBindAddress string The endpoint used to bind the frontend socket.
backendBindAddress string The endpoint used to bind the backend socket.
mode DeviceMode The for the device.
리턴 System

ForwarderDevice() 공개 메소드

Initializes a new instance of the ForwarderDevice class.
public ForwarderDevice ( string frontendBindAddress, string backendBindAddress, DeviceMode mode = DeviceMode.Threaded ) : System
frontendBindAddress string The endpoint used to bind the frontend socket.
backendBindAddress string The endpoint used to bind the backend socket.
mode DeviceMode The for the device.
리턴 System

FrontendHandler() 보호된 메소드

This override of FrontendHandler receives data from the socket contained within args, and Sends it to BackendSocket.
protected FrontendHandler ( object sender, NetMQSocketEventArgs args ) : void
sender object unused
args NetMQSocketEventArgs a NetMQSocketEventArgs that contains a Socket for receiving data from
리턴 void