public function connect($address)
    {
        $ret = @socket_connect($this->resource, $this->unformatAddress($address, $port), $port);
        if ($ret === false) {
            throw Exception::createFromSocketResource($this->resource);
        }
        return $this;
    }
public function connect($address)
    {
        $ret = @socket_connect($this->resource, $this->unformatAddress($address, $port), $port);
        if ($ret === false) {
            throw Exception::createFromSocketResource($this->resource);
        }
        return $this;
    }
public function connect ( $ address ) { $ ret = @ socket_connect ( $ this -> resource , $ this -> unformatAddress ( $ address , $ port ) , $ port ) ; if ( $ ret === false ) { throw Exception :: createFromSocketResource ( $ this -> resource ) ; } return $ this ; }
initiate a connection to given address

@param string $address either of IPv4:port, hostname:port, [IPv6]:port, unix-path
@return self $this (chainable)
@throws Exception on error
@uses socket_connect()
initiate a connection to given address