[zeromq-dev] Multithreaded client & server don't work together

Rafal Gm grasmanek94 at gmail.com
Fri Oct 17 03:48:20 CEST 2014


Oh addition, It does send when moving zmq::proxy as the last statement
(below connect and bind) but only 50% of the messages are send. How can I
fix this?

2014-10-17 3:43 GMT+02:00 Rafal Gm <grasmanek94 at gmail.com>:

> 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/d998c35b/attachment.htm>


More information about the zeromq-dev mailing list