Wrapper around ZeroMQ Socket
Inheritance: IDisposable
Ejemplo n.º 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);
 }
Ejemplo n.º 2
0
 private Socket CreateSocket(ZMQ.SocketType socketType)
 {
     var zmqsocket = _context.Socket(socketType);
     var socket = new Socket(zmqsocket);
     return socket;
 }
Ejemplo n.º 3
0
 public Socket CreateSocket(ZMQ.SocketType socketType)
 {
     var zmqsocket = _zeromqContext.Socket(socketType);
     var socket = new Socket(zmqsocket);
     return socket;
 }