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
Afficher le fichier Open project: jgoz/crossroads-net

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

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

ForwarderDevice() public méthode

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 méthode

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 méthode

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 méthode

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 méthode

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