S
someone
is there a way i can check whether there is any data in a tcp socket and to
check whether the socket has closed or not
for example
$line = <SOCKET>;
if the party at the other end does not send data, then the program will hang
at this point until data arrives. if there is data, how to know the size? i
want to read whatever that is available.
check whether the socket has closed or not
for example
$line = <SOCKET>;
if the party at the other end does not send data, then the program will hang
at this point until data arrives. if there is data, how to know the size? i
want to read whatever that is available.