public function open()
    {
        $this->socket = stream_socket_client('tcp://'.$this->address, $errc, $errs, STREAM_CLIENT_CONNECT);

        if (!$this->socket) {
            throw new HSException('Connection to '.$this->address.' failed');
        }
    }