Net_Socket::getStatus()

Net_Socket::getStatus() -- retrieve information about a connection

Synopsis

require_once 'Net/Socket.php';

array Net_Socket::getStatus ()

Description

Returns information about an existing socket resource.

Return value

array - the data as array or a PEAR_Error

The content of the array is:

Throws

Table 38-1. Possible PEAR_Error values

Error codeError messageReasonSolution
NULL"not connected" There is no open connection. You must establish a connection before ( Net_Socket::connect()).

Note

This function can not be called statically.