Qt 4.8
Public Functions | Public Variables | List of all members
QRfbSetEncodings Class Reference

#include <qscreenvnc_p.h>

Public Functions

bool read (QTcpSocket *s)
 
bool read (QTcpSocket *s)
 

Public Variables

quint16 count
 

Detailed Description

Definition at line 196 of file qscreenvnc_p.h.

Functions

◆ read() [1/2]

bool QRfbSetEncodings::read ( QTcpSocket s)

Definition at line 471 of file qscreenvnc_qws.cpp.

Referenced by QVNCServer::setEncodings().

472 {
473  if (s->bytesAvailable() < 3)
474  return false;
475 
476  char tmp;
477  s->read(&tmp, 1); // padding
478  s->read((char *)&count, 2);
479  count = ntohs(count);
480 
481  return true;
482 }
qint64 bytesAvailable() const
Returns the number of incoming bytes that are waiting to be read.
qint64 read(char *data, qint64 maxlen)
Reads at most maxSize bytes from the device into data, and returns the number of bytes read...
Definition: qiodevice.cpp:791

◆ read() [2/2]

bool QRfbSetEncodings::read ( QTcpSocket s)

Properties

◆ count

quint16 QRfbSetEncodings::count

Definition at line 201 of file qscreenvnc_p.h.

Referenced by QVNCServer::setEncodings().


The documentation for this class was generated from the following files: