[zeromq-dev] Multithreaded client & server don't work together
Rafal Gm
grasmanek94 at gmail.com
Fri Oct 17 03:43:21 CEST 2014
Hello,
I am trying to use zeromq to create a game client and game server, yet I am
having trouble with exchanging data by using multi threading and workers.
My idea is to use one worker for sending, one for receiving, and a socket
which keeps the connection. on the server I replace the connection with a
bind. Yet somehow data is not exchanged (but the return of zmq_socket::send
is true, so it has not failed).
Could someone please tell me what I did wrong?
This is my server example: http://ideone.com/paMIXi
And this is my client example: http://ideone.com/irf82c
Thanks for your time!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20141017/4b1ce03d/attachment.htm>
More information about the zeromq-dev
mailing list