socket_get_status

( PHP 4 )

socket_get_status -- Returns information about an existing socket stream

Description

array socket_get_status ( resource socketstream)

Returns information about an existing socket stream . This function only works on sockets created by fsockopen( ) , pfsockopen( ) or network sockets returned by fopen( ) when opening URLs . It does NOT work with sockets from the Socket extension . Currently returns four entries in the result array :

See also : Socket extension .