On Wed, Oct 12, 2011 at 1:21 AM, lanre lawal <[email protected]> wrote: > Ok Ali. But i'm pretty new to this whole socket thing. The guy am working > with actually achieved the same thing as I want to on C#. The code is pretty > much the same as what I have and he says he's receiving the messages. You > said the send and recv methods are in block mode by default. How can I > unblock it so that the messages come in. This task is pretty easy as I'm not > doing any complex socket implementation. Can you go through my short code to > see where I could have gone wrong? Thank you
Hi, setSockOpt takes two arguments rather than one. $socket->setsockopt (ZMQ::SOCKOPT_SUBSCRIBE, ""). As mentioned before the http://zguide.zeromq.org/page:all contains examples in PHP as well, including publish-subscribe examples. -- Mikko Koppanen _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
