C# Class NetMQ.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: DeviceBase
Afficher le fichier Open project: NetMQ/NetMQ3-x

Méthodes publiques

Méthode Description
StreamerDevice ( INetMQPoller poller, string frontendBindAddress, string backendBindAddress, DeviceMode mode = DeviceMode.Threaded ) : System

Initializes a new instance of the StreamerDevice class.

StreamerDevice ( string frontendBindAddress, string backendBindAddress, DeviceMode mode = DeviceMode.Threaded ) : System

Initializes a new instance of the ForwarderDevice class.

Méthodes protégées

Méthode Description
FrontendHandler ( object sender, NetMQSocketEventArgs args ) : void

This Override of FrontendHandler receives data from the socket contained within args, and sends it to BackendSocket.

Private Methods

Méthode Description
StreamerDevice ( NetMQContext context, INetMQPoller poller, string frontendBindAddress, string backendBindAddress, DeviceMode mode = DeviceMode.Threaded ) : System
StreamerDevice ( NetMQContext context, string frontendBindAddress, string backendBindAddress, DeviceMode mode = DeviceMode.Threaded ) : System

Method Details

FrontendHandler() protected méthode

This Override of FrontendHandler receives data from the socket contained within args, and sends it to BackendSocket.
protected FrontendHandler ( object sender, NetMQSocketEventArgs args ) : void
sender object unused
args NetMQSocketEventArgs a NetMQSocketEventArgs that contains a NetMqSocket for receiving data from
Résultat void

StreamerDevice() public méthode

Initializes a new instance of the StreamerDevice class.
public StreamerDevice ( INetMQPoller poller, string frontendBindAddress, string backendBindAddress, DeviceMode mode = DeviceMode.Threaded ) : System
poller INetMQPoller The to use.
frontendBindAddress string The endpoint used to bind the frontend socket.
backendBindAddress string The endpoint used to bind the backend socket.
mode DeviceMode The for the device.
Résultat System

StreamerDevice() public méthode

Initializes a new instance of the ForwarderDevice class.
public StreamerDevice ( string frontendBindAddress, string backendBindAddress, DeviceMode mode = DeviceMode.Threaded ) : System
frontendBindAddress string The endpoint used to bind the frontend socket.
backendBindAddress string The endpoint used to bind the backend socket.
mode DeviceMode The for the device.
Résultat System