Pool Video Switch v2
Software video switch for distributed remote display in a lecture environment
Macros | Functions
networkmessage.cpp File Reference
#include <QtCore>
#include <QtNetwork>
#include "networkmessage.h"
+ Include dependency graph for networkmessage.cpp:

Go to the source code of this file.

Macros

#define HEADER_LEN   8
 
#define MAX_MSG_LEN   60000
 
#define BYTE_SWAP4(x)
 
#define BYTE_SWAP2(x)
 

Functions

static quint16 _htons (const quint16 x)
 
static quint32 _htonl (const quint32 x)
 
static quint16 _ntohs (const char *in)
 
static quint32 _ntohl (const char *in)
 

Macro Definition Documentation

#define BYTE_SWAP2 (   x)
Value:
((((x) & 0xFF00u) >> 8) | \
(((x) & 0x00FFu) << 8))

Definition at line 21 of file networkmessage.cpp.

#define BYTE_SWAP4 (   x)
Value:
((((x) & 0xFF000000u) >> 24) | \
(((x) & 0x00FF0000u) >> 8) | \
(((x) & 0x0000FF00u) << 8) | \
(((x) & 0x000000FFu) << 24))

Definition at line 15 of file networkmessage.cpp.

#define HEADER_LEN   8

Definition at line 12 of file networkmessage.cpp.

#define MAX_MSG_LEN   60000

Definition at line 13 of file networkmessage.cpp.

Function Documentation

static quint32 _htonl ( const quint32  x)
static

Definition at line 32 of file networkmessage.cpp.

+ Here is the caller graph for this function:

static quint16 _htons ( const quint16  x)
static

Definition at line 25 of file networkmessage.cpp.

+ Here is the caller graph for this function:

static quint32 _ntohl ( const char *  in)
static

Definition at line 45 of file networkmessage.cpp.

+ Here is the caller graph for this function:

static quint16 _ntohs ( const char *  in)
static

Definition at line 39 of file networkmessage.cpp.

+ Here is the caller graph for this function: