Net_Socket | Net_Socket::disconnect() |
Net_Socket | |
PEAR Manual | |
require_once 'Net/Socket.php'; |
boolean Net_Socket::connect (
string $addr
, integer $port
, boolean
$persistent = NULL
, integer
$timeout = NULL
, array
$options = NULL
)
Connect to the specified port. If called when the socket is already connected, it disconnects and connects again.
boolean - Returns TRUE on success, PEAR_Error on failure.
Error code | Error message | Reason | Solution |
every | every |
The connection could not be established because
|
Check for server name, the connection to the net and possible firewalls on client or server side |
This function can not be called statically.
Net_Socket | Net_Socket::disconnect() |
Net_Socket | |
PEAR Manual | |