Name

socket_get_status

Synopsis

array socket_get_status(resource socket)

Returns an associative array containing information about socket. The following values are returned:

timed_out

true if the socket has timed out waiting for data

blocked

true if the socket is blocked

eof

true if an EOF event has been raised

unread_bytes

The number of unread bytes in the socket buffer

Get Programming PHP now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.