[zeromq-dev] Multithreaded client & server don't work together
Rafal Gm
grasmanek94 at gmail.com
Fri Oct 17 06:47:47 CEST 2014
when a background process is running the compiler will complain that it is
not able to overwrite to output file. So there is only one server and one
client running, every two times I hit Q+W I get one revceive on the server.
2014-10-17 6:45 GMT+02:00 Pieter Hintjens <ph at imatix.com>:
> 50% sent or 50% received...? You may have an existing process
> connecting to the same socket, in the background (a previous test
> run).
>
> 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
> >
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20141017/917d2e27/attachment.htm>
More information about the zeromq-dev
mailing list