Hi ...
I have made a server/client program.
Only the server is made with php.
The client always ends its message with a zero byte.
I use socket_read($resource,1024)
which uses by default PHP_BINARY_READ.
php version > 4.1...
Everything works fine ... but if I connect to the server via telnet it stucks and does not accept other connections until telnet close its connection or transmit a message (press any key).
(I use socket_select to wait for other connections ... then socket_accept ... and the i put the socket_read )
Can I shutdown the connection when is done by a telnet program ?
Otherwise anyone can stuck the server 🙂
....
Thanks