|
Pool Video Switch v2
Software video switch for distributed remote display in a lecture environment
|
#include "networkmessage.h"
Collaboration diagram for NetworkMessage:Public Member Functions | |
| NetworkMessage () | |
| virtual | ~NetworkMessage () |
| int | readMessage (QAbstractSocket *socket) |
| int | readMessage (char *data, quint32 len) |
| bool | writeMessage (QAbstractSocket *socket) |
| bool | writeMessage (QUdpSocket *socket, const QHostAddress &address, quint16 port) |
| void | reset () |
| bool | readComplete () const |
| bool | writeComplete () const |
| bool | hasField (QByteArray &key) |
| QString | getFieldString (const QByteArray &key) const |
| QByteArray | getFieldBytes (const QByteArray &key) const |
| void | setField (const QByteArray &key, const QByteArray &value) |
| void | setField (const QByteArray &key, const QString &value) |
| void | buildErrorMessage (const QString &error) |
Private Member Functions | |
| void | allocBuffer () |
| bool | parseHeader (char *header) |
| bool | parseMessage (char *buffer) |
| void | serializeMessage () |
Private Attributes | |
| char * | _buffer |
| quint32 | _bufferSize |
| quint32 | _bufferPos |
| quint32 | _lastBufferSize |
| QHash< QByteArray, QByteArray > | _fields |
| int | _mode |
Definition at line 51 of file networkmessage.h.
| NetworkMessage::NetworkMessage | ( | ) |
Definition at line 58 of file networkmessage.cpp.
|
virtual |
Definition at line 64 of file networkmessage.cpp.
|
inlineprivate |
| void NetworkMessage::buildErrorMessage | ( | const QString & | error | ) |
Definition at line 263 of file networkmessage.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
|
inline |
Definition at line 74 of file networkmessage.h.
|
private |
Definition at line 146 of file networkmessage.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 165 of file networkmessage.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
| int NetworkMessage::readMessage | ( | QAbstractSocket * | socket | ) |
Definition at line 80 of file networkmessage.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| int NetworkMessage::readMessage | ( | char * | data, |
| quint32 | len | ||
| ) |
|
inline |
|
private |
Definition at line 236 of file networkmessage.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
Definition at line 78 of file networkmessage.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
| bool NetworkMessage::writeMessage | ( | QAbstractSocket * | socket | ) |
Definition at line 186 of file networkmessage.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool NetworkMessage::writeMessage | ( | QUdpSocket * | socket, |
| const QHostAddress & | address, | ||
| quint16 | port | ||
| ) |
|
private |
Definition at line 54 of file networkmessage.h.
|
private |
Definition at line 55 of file networkmessage.h.
|
private |
Definition at line 55 of file networkmessage.h.
|
private |
Definition at line 56 of file networkmessage.h.
|
private |
Definition at line 55 of file networkmessage.h.
|
private |
Definition at line 57 of file networkmessage.h.
1.8.8