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?
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]