[zeromq-dev] XREQ/XREP messaging flow
Umut Aydin
aydinumut82 at gmail.com
Mon Oct 24 11:42:29 CEST 2011
Hello Pieter,
I'm working on it. Thank you
-Umut
On Sun, Oct 23, 2011 at 5:05 PM, Pieter Hintjens <ph at imatix.com> wrote:
> Umut,
>
> Please read the Guide until at least chapter 3, where it explains how
> DEALER/ROUTER sockets work.
>
> You're not using the ROUTER/XREP socket correctly, so messages are
> being dropped.
>
> -Pieter
>
> On Sun, Oct 23, 2011 at 4:27 AM, Umut Aydin <aydinumut82 at gmail.com> wrote:
> > Hello everyone,
> > I'm trying to make a small game server demo with ZeroMQ and I have a
> problem
> > with my XREQ/XREP sockets.
> > http://pastebin.com/Ym0qxjgX
> > As you can see in sample source code, it looks like basic sync pub/sub
> > example of python binding. In example, server sends responses through
> > publisher socket and it works. It's OK with my code too but I need to use
> > server socket at least for one response.
> > If you run my code you'll see that server socket can receive 'WhoAmI'
> > request and calls send method. To see that please cut 'print data' and
> > paste it to the line right after 'if' condition.
> > The problem here is that client socket cannot receive the response. If I
> use
> > publisher socket instead of server to respond, then client can receive
> the
> > response correctly. Of course you should change 'client.receive' to
> > 'subscriber.receive' to perform that.
> > I have all game-related classes completed and tested via PUB/SUB
> messaging
> > but I cannot get that single response received by my XREQ socket.
> > Do I miss something in my code? Any idea?
> > By the way, right after solving that problem, I'll make subscriber and
> > client loops work in different multiprocessing.Process
> > I tried to implement that now and I couldn't get any response but I guess
> it
> > was based on same problem.
> > Thank you.
> > -Umut
> > _______________________________________________
> > 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/20111024/b3f2423d/attachment.htm>
More information about the zeromq-dev
mailing list