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