http://pear.php.net/packages/Net_Socket2