src/HSCore/Driver.php
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');
        }
    }
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');
        }
    }
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' ) ; } }
Open Handler Socket

@throwsHSrException
Open Handler Socket