Planeshift
psMessageBytes Struct Reference

this struct represents the data that is sent out through the network (all additional stuff should go into the struct MsgEntry More...

#include <message.h>

Public Member Functions

size_t GetSize () const
 
size_t GetTotalSize () const
 
void SetSize (size_t len)
 
void SetTotalSize (size_t len)
 

Public Attributes

char payload [0]
 this can be used as a pointer to the data More...
 
uint16_t size
 the size of the following data More...
 
msgtype type
 Version. More...
 

Detailed Description

this struct represents the data that is sent out through the network (all additional stuff should go into the struct MsgEntry

Definition at line 111 of file message.h.

Member Function Documentation

size_t psMessageBytes::GetSize ( ) const
inline

Definition at line 118 of file message.h.

size_t psMessageBytes::GetTotalSize ( ) const
inline

Definition at line 117 of file message.h.

void psMessageBytes::SetSize ( size_t  len)
inline

Definition at line 119 of file message.h.

void psMessageBytes::SetTotalSize ( size_t  len)
inline

Definition at line 120 of file message.h.

Member Data Documentation

char psMessageBytes::payload[0]

this can be used as a pointer to the data

Definition at line 115 of file message.h.

uint16_t psMessageBytes::size

the size of the following data

Definition at line 114 of file message.h.

msgtype psMessageBytes::type

Version.

Definition at line 113 of file message.h.


The documentation for this struct was generated from the following file: