[zeromq-dev] PHP Error on Ubuntu
Mikko Koppanen
mikko.koppanen at gmail.com
Wed Oct 12 02:30:38 CEST 2011
On Wed, Oct 12, 2011 at 1:21 AM, lanre lawal <lawillas4ever at yahoo.com> 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
More information about the zeromq-dev
mailing list