C# Class CrossroadsIO.Devices.StreamerDevice

Collects tasks from a set of pushers and forwards these to a set of pullers.
Generally used to bridge networks. Messages are fair-queued from pushers and load-balanced to pullers. This device is part of the pipeline pattern. The frontend speaks to pushers and the backend speaks to pullers.
Inheritance: Device
ファイルを表示 Open project: jgoz/crossroads-net

Public Methods

Method Description
StreamerDevice ( Context context )

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

StreamerDevice ( Context context, DeviceMode mode )

Initializes a new instance of the StreamerDevice class.

StreamerDevice ( Context context, string frontendBindAddr, string backendBindAddr )

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

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

Initializes a new instance of the StreamerDevice class.

Protected Methods

Method Description
BackendHandler ( SocketEventArgs args ) : void

Not implemented for the StreamerDevice.

FrontendHandler ( SocketEventArgs args ) : void

Forwards requests from the frontend socket to the backend socket.

Method Details

BackendHandler() protected method

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

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

StreamerDevice() public method

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

StreamerDevice() public method

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

StreamerDevice() public method

Initializes a new instance of the StreamerDevice class that will run in a self-managed thread.
public StreamerDevice ( 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.

StreamerDevice() public method

Initializes a new instance of the StreamerDevice class.
public StreamerDevice ( 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.