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

Pieter Hintjens ph at imatix.com
Fri Oct 17 06:45:02 CEST 2014

50% sent or 50% received...? You may have an existing process
connecting to the same socket, in the background (a previous test

On Fri, Oct 17, 2014 at 3:48 AM, Rafal Gm <grasmanek94 at gmail.com> wrote:
> 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!
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev

More information about the zeromq-dev mailing list