[zeromq-dev] PHP Error on Ubuntu

2011-10-11 Thread lanre lawal
So guys haven been frustrated by the windows build process, i decided to install Ubuntu on my work station and as you all rightly noted, the installation process for ZMQ was pretty straight forward. However the extension has been loaded correctly and appears in the phpinfo() page. Now i tried to

Re: [zeromq-dev] PHP Error on Ubuntu

2011-10-11 Thread Amr Ali
I'm not familiar with the PHP client library but this error basically says that the send() operation has not been completed, and since this is a REQ socket, you cannot recv() before you send(). I'd make sure that send() was successful first (lookup documentation to see how to check on that) and yo

Re: [zeromq-dev] PHP Error on Ubuntu

2011-10-11 Thread lanre lawal
Sent: Tuesday, October 11, 2011 11:48 PM Subject: Re: [zeromq-dev] PHP Error on Ubuntu I'm not familiar with the PHP client library but this error basically says that the send() operation has not been completed, and since this is a REQ socket, you cannot recv() before you send(). I'd make

Re: [zeromq-dev] PHP Error on Ubuntu

2011-10-11 Thread Mikko Koppanen
On Wed, Oct 12, 2011 at 12:24 AM, lanre lawal wrote: > Hello Ali, >   Well for what iḿ trying to achieve I really don´t need to send any > messages, All i need to do is receive the messages so am thinking maybe the > send() part would have to go off. The documentation site is currently down >

Re: [zeromq-dev] PHP Error on Ubuntu

2011-10-11 Thread Amr Ali
It depends on what he wants to do, if he wants to have several sockets receiving the same message, he then should use PUB/SUB, otherwise PUSH/PULL pattern should work smoothly. PUB/SUB should work in a setup that looks like this ... [Publisher] - - --> [Subscriber] -

Re: [zeromq-dev] PHP Error on Ubuntu

2011-10-11 Thread lanre lawal
lanrewaju Lawal Web Developer / Programmer +2348053568948 From: Amr Ali To: ZeroMQ development list Sent: Wednesday, October 12, 2011 12:41 AM Subject: Re: [zeromq-dev] PHP Error on Ubuntu It depends on what he wants to do, if he wants to have several sockets r

Re: [zeromq-dev] PHP Error on Ubuntu

2011-10-11 Thread lanre lawal
+2348053568948 From: Amr Ali To: lanre lawal Sent: Wednesday, October 12, 2011 1:09 AM Subject: Re: [zeromq-dev] PHP Error on Ubuntu This is not very helpful, the reasons for this to block endlessly are so many it's hard for me to cover in one email, but I'll list few things

Re: [zeromq-dev] PHP Error on Ubuntu

2011-10-11 Thread Mikko Koppanen
On Wed, Oct 12, 2011 at 1:21 AM, lanre lawal 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

Re: [zeromq-dev] PHP Error on Ubuntu

2011-10-11 Thread lanre lawal
oops or to just receive the messages one per AJAX request   Regards, Olanrewaju Lawal Web Developer / Programmer +2348053568948 From: Mikko Koppanen To: ZeroMQ development list Sent: Wednesday, October 12, 2011 1:30 AM Subject: Re: [zeromq-dev] PHP Error on Ubun

Re: [zeromq-dev] PHP Error on Ubuntu

2011-10-11 Thread Mikko Koppanen
On Wed, Oct 12, 2011 at 1:55 AM, lanre lawal wrote: > Now I have a question, for an AJAX implementation, would it > be better to receive the messages through a loop say 20loops or to just > receive the messages one per AJAX request This is something that you just have to try out and see what suit