Planeshift
Public Member Functions | Public Attributes

OrderedMessageChannel Struct Reference

This class holds the structure for guaranteed inbound ordering of certain message types. More...

#include <msghandler.h>

List of all members.

Public Member Functions

int GetCurrentSequenceNumber ()
int IncrementSequenceNumber ()
 OrderedMessageChannel ()

Public Attributes

int nextSequenceNumber
csRefArray< MsgEntrypendingMessages

Detailed Description

This class holds the structure for guaranteed inbound ordering of certain message types.

We need to track the next sequence number we're expecting (in a range from 1-127, where 0 means unordered) and to queue up the messages we've received early. This is used by Client and ClientMsgHandler classes.

Definition at line 80 of file msghandler.h.


Constructor & Destructor Documentation

OrderedMessageChannel::OrderedMessageChannel ( ) [inline]

Definition at line 85 of file msghandler.h.


Member Function Documentation

int OrderedMessageChannel::GetCurrentSequenceNumber ( ) [inline]

Definition at line 87 of file msghandler.h.

int OrderedMessageChannel::IncrementSequenceNumber ( ) [inline]

Definition at line 89 of file msghandler.h.


Member Data Documentation

Definition at line 82 of file msghandler.h.

Definition at line 83 of file msghandler.h.


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