C# Class 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.
Inheritance: Device
Show file Open project: jgoz/crossroads-net

Public Methods

Method Description
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.

Protected Methods

Method Description
BackendHandler ( SocketEventArgs args ) : void

Not implemented for the ForwarderDevice.

FrontendHandler ( SocketEventArgs args ) : void

Forwards requests from the frontend socket to the backend socket.

Method Details

BackendHandler() protected method

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

ForwarderDevice() public method

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() public method

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() public method

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() public method

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() protected method

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