Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 451 Bytes

proactor.md

File metadata and controls

16 lines (13 loc) · 451 Bytes

Proactor

NetMQProactor quickly processes messages received on a socket using a dedicated thread.

using (var receiveSocket = new DealerSocket(">tcp://localhost:5555"))
using (var proactor = new NetMQProactor(receiveSocket, 
        (socket, message) => ProcessMessage(message)))
{
    // ...
}

Internally the proactor creates a NetMQPoller for the socket, and a NetMQActor to coordinate the poller thread and disposal.