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 - Retourne TRUE en cas de succès, un objet PEAR_Error en cas d'échec.
Tableau 48-1. Valeurs PEAR_Error possibles
wrong server name or adress
the host itself is not link to a network
a firewall does not allow an access
Cette fonction ne peut pas être appelée de façon statique.
Net_Socket::disconnect()