protected function recvStr($read = true)
    {
        $str = @fgets($this->socket);
        if (!$str) {
            $this->disconnect();
            throw new IOException('Cannot read from socket');
        }
        return substr($str, 0, -1);
    }
protected function recvStr($read = true)
    {
        $str = @fgets($this->socket);
        if (!$str) {
            $this->disconnect();
            throw new IOException('Cannot read from socket');
        }
        return substr($str, 0, -1);
    }
protected function recvStr ( $ read = true ) { $ str = @ fgets ( $ this -> socket ) ; if ( ! $ str ) { $ this -> disconnect ( ) ; throw new IOException ( 'Cannot read from socket' ) ; } return substr ( $ str , 0 , - 1 ) ; }
Receive one string from server,string haven't trailing \n

@param Boolean $read Specifies socket

@throws IOException

@return string
Receive one string from server string haven t trailing \ n