[PHP] socket_recv

2011-11-17 Thread Tim Streater
I'm playing around with web sockets and have found a couple of simple servers written in PHP. They both appear to perform the initial handshake with a client but then just give up because socket_recv reports that there is no data. I'm confused by this as, the handshake being complete, I

Re: [PHP] socket_recv

2011-11-17 Thread Mike Mackintosh
On Nov 17, 2011, at 14:03, Tim Streater t...@clothears.org.uk wrote: I'm playing around with web sockets and have found a couple of simple servers written in PHP. They both appear to perform the initial handshake with a client but then just give up because socket_recv reports that there is

[PHP] socket_recv

2006-10-29 Thread Eric
Is there a reccomended size of data to pull in with socket_recv (Such as 1024) or can I pull in 981132487 and it wont make a difference? Thanks in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] socket_recv

2006-10-29 Thread Ed Lazor
Depends on the volume and type of data that you're working with. It also depends on the type of connection between the server and client. Slower connections, unreliable connections, or general data, use smaller packets. Reliable connection or higher volumes of data, use larger packets.