Wrapper around ZeroMQ Socket
Inheritance: IDisposable
Example #1
0
 public RequestSender(String address, ZMQ.SocketType socketType, ZMQ.Context context)
 {
     _context = context;
     _address = Protocolize(address);
     _socket = CreateSocket(socketType);
     _socket.Connect(_address, CancellationToken.None);
 }
Example #2
0
 private Socket CreateSocket(ZMQ.SocketType socketType)
 {
     var zmqsocket = _context.Socket(socketType);
     var socket = new Socket(zmqsocket);
     return socket;
 }
Example #3
0
 public Socket CreateSocket(ZMQ.SocketType socketType)
 {
     var zmqsocket = _zeromqContext.Socket(socketType);
     var socket = new Socket(zmqsocket);
     return socket;
 }