コード例 #1
0
ファイル: client.php プロジェクト: prggmr/xpspl
 /**
  * Constructs a new client connection.
  *
  * @param  resource  $socket  Socket connection.
  *
  * @return  void
  */
 public function __construct($socket)
 {
     parent::__construct($socket);
     if (false === $this->_connect()) {
         throw_socket_error();
     }
 }