require_once 'Net/Socket.php';
boolean Net_Socket::connect (string $addr, integer $port, boolean [$persistent = NULL], integer [$timeout = NULL])
boolean Net_Socket::connect
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.
Table 48-1. Possible PEAR_Error values
wrong server name or adress
the host itself is not link to a network
a firewall does not allow an access
This function can not be called statically.
Net_Socket::disconnect()