public Socket CreateSocket(ZMQ.SocketType socketType) { var zmqsocket = _zeromqContext.Socket(socketType); var socket = new Socket(this, zmqsocket); return(socket); }
public SocketListener(ZMQ.SocketType socketType, Int32 port, Func <RequestType, BinaryStream, Func <BinaryStream, Response> > handlerMapping) { _socketType = socketType; _handlerMapping = handlerMapping; _address = String.Format("tcp://*:{0}", port); }
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 SocketListener(ZMQ.SocketType socketType, Int32 port, Func<RequestType, BinaryStream, Func<BinaryStream, Response>> handlerMapping) { _socketType = socketType; _handlerMapping = handlerMapping; _address = String.Format("tcp://*:{0}", port); }