C# 클래스 CrossroadsIO.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.
상속: Device
파일 보기 프로젝트 열기: jgoz/crossroads-net

공개 메소드들

메소드 설명
ForwarderDevice ( Context context )

Initializes a new instance of the ForwarderDevice class that will run in a self-managed thread.

ForwarderDevice ( Context context, DeviceMode mode )

Initializes a new instance of the ForwarderDevice class.

ForwarderDevice ( Context context, string frontendBindAddr, string backendBindAddr )

Initializes a new instance of the ForwarderDevice class that will run in a self-managed thread.

ForwarderDevice ( Context context, string frontendBindAddr, string backendBindAddr, DeviceMode mode )

Initializes a new instance of the ForwarderDevice class.

보호된 메소드들

메소드 설명
BackendHandler ( SocketEventArgs args ) : void

Not implemented for the ForwarderDevice.

FrontendHandler ( SocketEventArgs args ) : void

Forwards requests from the frontend socket to the backend socket.

메소드 상세

BackendHandler() 보호된 메소드

Not implemented for the ForwarderDevice.
protected BackendHandler ( SocketEventArgs args ) : void
args SocketEventArgs A object containing the poll event args.
리턴 void

ForwarderDevice() 공개 메소드

Initializes a new instance of the ForwarderDevice class that will run in a self-managed thread.
public ForwarderDevice ( Context context )
context Context The to use when creating the sockets.

ForwarderDevice() 공개 메소드

Initializes a new instance of the ForwarderDevice class.
public ForwarderDevice ( Context context, DeviceMode mode )
context Context The to use when creating the sockets.
mode DeviceMode The for the current device.

ForwarderDevice() 공개 메소드

Initializes a new instance of the ForwarderDevice class that will run in a self-managed thread.
public ForwarderDevice ( Context context, string frontendBindAddr, string backendBindAddr )
context Context The to use when creating the sockets.
frontendBindAddr string The address used to bind the frontend socket.
backendBindAddr string The endpoint used to bind the backend socket.

ForwarderDevice() 공개 메소드

Initializes a new instance of the ForwarderDevice class.
public ForwarderDevice ( Context context, string frontendBindAddr, string backendBindAddr, DeviceMode mode )
context Context The to use when creating the sockets.
frontendBindAddr string The address used to bind the frontend socket.
backendBindAddr string The endpoint used to bind the backend socket.
mode DeviceMode The for the current device.

FrontendHandler() 보호된 메소드

Forwards requests from the frontend socket to the backend socket.
protected FrontendHandler ( SocketEventArgs args ) : void
args SocketEventArgs A object containing the poll event args.
리턴 void