public function connect($address, $port = 0)
    {
        return static::exceptionOnFalse(
            $this->resource,
            function ($resource) use ($address, $port) {
                return @socket_connect($resource, $address, $port);
            }
        );
    }