C# Класс NetMQ.Proxy

Forward messages between two sockets, you can also specify control socket which both sockets will send messages to
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Proxy ( [ frontend, [ backend, [ control = null, [ poller = null ) : System

Create a new instance of a Proxy (NetMQ.Proxy) with the given sockets to serve as a front-end, a back-end, and a control socket.

Proxy ( [ frontend, [ backend, [ controlIn, [ controlOut, [ poller = null ) : System

Create a new instance of a Proxy (NetMQ.Proxy) with the given sockets to serve as a front-end, a back-end, and a control socket.

Start ( ) : void

Start proxying messages between the front and back ends. Blocks, unless using an external NetMQPoller.

Stop ( ) : void

Stops the proxy, blocking until the underlying NetMQPoller has completed.

Приватные методы

Метод Описание
OnBackendReady ( object sender, NetMQSocketEventArgs e ) : void
OnFrontendReady ( object sender, NetMQSocketEventArgs e ) : void
ProxyBetween ( IReceivingSocket from, IOutgoingSocket to, [ control ) : void

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

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

Create a new instance of a Proxy (NetMQ.Proxy) with the given sockets to serve as a front-end, a back-end, and a control socket.
is not null and either or are not contained within it.
public Proxy ( [ frontend, [ backend, [ control = null, [ poller = null ) : System
frontend [ the socket that messages will be forwarded from
backend [ the socket that messages will be forwarded to
control [ this socket will have messages also sent to it - you can set this to null if not needed
poller [ an optional external poller to use within this proxy
Результат System

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

Create a new instance of a Proxy (NetMQ.Proxy) with the given sockets to serve as a front-end, a back-end, and a control socket.
public Proxy ( [ frontend, [ backend, [ controlIn, [ controlOut, [ poller = null ) : System
frontend [ the socket that messages will be forwarded from
backend [ the socket that messages will be forwarded to
controlIn [ this socket will have incoming messages also sent to it - you can set this to null if not needed
controlOut [ this socket will have outgoing messages also sent to it - you can set this to null if not needed
poller [ an optional external poller to use within this proxy
Результат System

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

Start proxying messages between the front and back ends. Blocks, unless using an external NetMQPoller.
The proxy has already been started.
public Start ( ) : void
Результат void

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

Stops the proxy, blocking until the underlying NetMQPoller has completed.
The proxy has not been started.
public Stop ( ) : void
Результат void