Answer the question
In order to leave comments, you need to log in
PHP socket_read. problem with received data?
I write Echo server
a piece of code:
while($client && $msg = socket_read($client, self::MSG_BYTE_LIMIT) ) {
if ( $msg == 'quit' ) {
die("Disconnected.\n");
}
socket_write($client, $msg);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question