Question

From: Date: Wed, 22 Aug 2001 20:24:37 +0000
Subject: Question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-63962@lists.php.net to get a copy of this message
Hello, I have the next problem and I don't know how can I have the solution: I wan to read a socket output, and format the lines, but first: Can I make some kind o "sizeof" in the buffer that I'm receiving? That's because the read of the socket it's very slow; and if I read for example 256 for the length of the packet, and the server send me just 117 characters (include spaces) what happened with the others 139 characters?? I got another problem, because the second packet, must to have 117 character as length, and the PHP, read part of the first packet (this 139) and part of the second. and its very slow, and finish by timeout. second: can I cut the lines when I found the \n between each one? Thanks everybody Gustavo

« previous php.general (#63962) next »