Planeshift
Classes | Defines | Typedefs | Enumerations | Variables

message.h File Reference

#include <csutil/threading/atomicops.h>
#include <csutil/refcount.h>
#include <csutil/csendian.h>
#include <csutil/strhashr.h>
#include <csutil/strset.h>
#include <csgeom/vector3.h>
#include <iengine/sector.h>
#include <iengine/engine.h>
#include <csutil/csobject.h>
#include "util/log.h"
#include "net/packing.h"
#include "net/pstypes.h"
#include "util/genrefqueue.h"

Go to the source code of this file.

Classes

class  csSyncRefCount
class  MsgEntry
 The structure of 1 queue entry (pointer to a message) More...
struct  psMessageBytes
 this struct represents the data that is sent out through the network (all additional stuff should go into the struct MsgEntry More...

Defines

#define MSG_SIZEOF_FLOAT   sizeof(uint32)
#define MSG_SIZEOF_SECTOR   100
#define MSG_SIZEOF_VECTOR2   (2*sizeof(uint32))
#define MSG_SIZEOF_VECTOR3   (3*sizeof(uint32))
#define MSG_SIZEOF_VECTOR4   (4*sizeof(uint32))

Typedefs

typedef uint8_t msgtype

Enumerations

enum  { PRIORITY_LOW = 0x00, PRIORITY_HIGH = 0x01, PRIORITY_MASK = 0x01 }

Variables

const unsigned int MAX_MESSAGE_SIZE = 65535 - sizeof(psMessageBytes) - 1