Starshatter_Open
Open source Starshatter engine
|
#include <NetGram.h>
Public Member Functions | |
NetGram (const NetAddr &src, Text msg) | |
NetGram (const NetAddr &dst, Text user_data, int retries) | |
int | operator== (const NetGram &g) const |
int | operator< (const NetGram &g) const |
DWORD | PacketID () const |
DWORD | Sequence () const |
DWORD | SendTime () const |
BYTE * | Data () const |
BYTE * | UserData () const |
int | Size () const |
const Text & | Body () const |
const NetAddr & | Address () const |
bool | IsAck () const |
bool | IsReliable () const |
int | Retries () const |
void | Retry () |
NetGram | Ack () |
void | ClearAck () |
Static Public Member Functions | |
static const char * | TYPENAME () |
Protected Member Functions | |
NetGram () |
Protected Attributes | |
NetAddr | addr |
int | retries |
DWORD | send_time |
DWORD | packet_id |
Text | body |
NetGram constructor for receiving packets from remote hosts
Definition at line 36 of file NetGram.cpp.
NetGram constructor for composing packets to send to remote hosts
Definition at line 54 of file NetGram.cpp.
|
protected |
NetGram constructor for ACK packets
Definition at line 29 of file NetGram.cpp.
NetGram NetGram::Ack | ( | ) |
Definition at line 92 of file NetGram.cpp.
void NetGram::Retry | ( | ) |
Definition at line 81 of file NetGram.cpp.