public __construct ( resource $socket ) : void | ||
$socket | resource | Socket connection. |
return | void |
public function __construct($socket)
{
parent::__construct($socket);
if (false === $this->_connect()) {
throw_socket_error();
}
}