public function read($length = null)
    {
        $data = fread($this->socket, $length === null ? $this->bufferLen : $length);
        if ($this->debug) {
            OrientDBHelpers::hexDump($data);
        }
        return $data;
    }
public function read($length = null)
    {
        $data = fread($this->socket, $length === null ? $this->bufferLen : $length);
        if ($this->debug) {
            OrientDBHelpers::hexDump($data);
        }
        return $data;
    }
public function read ( $ length = null ) { $ data = fread ( $ this -> socket , $ length === null ? $ this -> bufferLen : $ length ) ; if ( $ this -> debug ) { OrientDBHelpers :: hexDump ( $ data ) ; } return $ data ; }
Read bytes from socket
@param int $length Bytes to read
@return string
Read bytes from socket