Planeshift
Public Member Functions | Public Attributes

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>

List of all members.

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
uint16_t size
 the size of the following data
msgtype type
 Version.

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

this can be used as a pointer to the data

Definition at line 115 of file message.h.

the size of the following data

Definition at line 114 of file message.h.

Version.

Definition at line 113 of file message.h.


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