[zeromq-dev] Problem routing packet back to client
Hsiao Henry
henry at kikiplay.com.tw
Thu Dec 27 09:50:27 CET 2012
Guys I solved the problem. Turns out I can't do this from RESPONDER:
ZmqSocket receive_worker = context.CreateSocket(SocketType.PUSH);
while (true)
{
---- something ----
receive_worker.Connect(response_address);
receive_worker.SendMessage(response_zmqmessage);
receive_worker.Disconnect(response_address);
}
Instead I have to recreate the connection, like below:
while (true)
{
---- something ----
ZmqSocket receive_worker = context.CreateSocket(SocketType.PUSH);
receive_worker.Connect(response_address);
receive_worker.SendMessage(response_zmqmessage);
receive_worker.Dispose();
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20121227/b3b5937f/attachment.htm>
More information about the zeromq-dev
mailing list