public ZmqPublisher(ZmqContext context, string endpoint) { socket = new ZSocket(context.Context, ZSocketType.PUB); socket.Linger = TimeSpan.Zero; this.endpoint = endpoint; isStart = false; }
public ZmqRequester(ZmqContext context) { socket = new ZSocket(context.Context, ZSocketType.REQ); poll = ZPollItem.CreateReceiver(); isSet = false; isStart = false; }
public ZmqSubscriber(ZmqContext zeroMQContext) { socket = new ZSocket(zeroMQContext.Context, ZSocketType.SUB); socket.Linger = TimeSpan.Zero; workerThread = new Thread(HandleMessage); isStarted = false; }
public ZmqReplyer(ZmqContext context, string endpoint, int timeOutMilliSecond) { socket = new ZSocket(context.Context, ZSocketType.REP); this.endpoint = endpoint; this.timeOutMilliSecond = timeOutMilliSecond; }