C# Класс 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.
Наследование: Device
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
BackendHandler ( SocketEventArgs args ) : void

Not implemented for the StreamerDevice.

FrontendHandler ( SocketEventArgs args ) : void

Forwards requests from the frontend socket to the backend socket.

Описание методов

BackendHandler() защищенный Метод

Not implemented for the StreamerDevice.
protected BackendHandler ( SocketEventArgs args ) : void
args SocketEventArgs A object containing the poll event args.
Результат void

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

StreamerDevice() публичный Метод

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() публичный Метод

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() публичный Метод

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() публичный Метод

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.