public RequestSender(String address, ZMQ.SocketType socketType, ZMQ.Context context) { _context = context; _address = Protocolize(address); _socket = CreateSocket(socketType); _socket.Connect(_address, CancellationToken.None); }
private Socket CreateSocket(ZMQ.SocketType socketType) { var zmqsocket = _context.Socket(socketType); var socket = new Socket(zmqsocket); return socket; }
public Socket CreateSocket(ZMQ.SocketType socketType) { var zmqsocket = _zeromqContext.Socket(socketType); var socket = new Socket(zmqsocket); return socket; }