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

#include <qscreenvnc_p.h>

Public Functions

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

Public Variables

quint32 length
 

Detailed Description

Definition at line 233 of file qscreenvnc_p.h.

Functions

◆ read() [1/2]

bool QRfbClientCutText::read ( QTcpSocket s)

Definition at line 557 of file qscreenvnc_qws.cpp.

Referenced by buttonChange(), and QVNCServer::clientCutText().

558 {
559  if (s->bytesAvailable() < 7)
560  return false;
561 
562  char tmp[3];
563  s->read(tmp, 3); // padding
564  s->read((char *)&length, 4);
565  length = ntohl(length);
566 
567  return true;
568 }
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 QRfbClientCutText::read ( QTcpSocket s)

Properties

◆ length

quint32 QRfbClientCutText::length

Definition at line 238 of file qscreenvnc_p.h.

Referenced by buttonChange(), and QVNCServer::clientCutText().


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