protected function readString()
    {
        $size = $this->readInt();
        if ($size === -1) {
            return null;
        }
        if ($size === 0) {
            return '';
        }
        return $this->readRaw($size);
    }
protected function readString()
    {
        $size = $this->readInt();
        if ($size === -1) {
            return null;
        }
        if ($size === 0) {
            return '';
        }
        return $this->readRaw($size);
    }
protected function readString ( ) { $ size = $ this -> readInt ( ) ; if ( $ size === - 1 ) { return null ; } if ( $ size === 0 ) { return '' ; } return $ this -> readRaw ( $ size ) ; }
Read string from socket, including its length
@return string
Read string from socket including its length