This class holds data for a connection.
More...
#include <netbase.h>
This class holds data for a connection.
Definition at line 684 of file netbase.h.
NetBase::Connection::Connection |
( |
uint32_t |
num = 0 | ) |
|
NetBase::Connection::~Connection |
( |
| ) |
|
void NetBase::Connection::AddToWindow |
( |
uint32_t |
bytes | ) |
|
|
inline |
Add to window when reliable data is in transit.
Definition at line 736 of file netbase.h.
uint32_t NetBase::Connection::GetNextPacketID |
( |
| ) |
|
|
inline |
bool NetBase::Connection::isValid |
( |
| ) |
const |
|
inline |
bool NetBase::Connection::IsWindowFull |
( |
| ) |
|
|
inline |
Check if the reliable transmission window is full.
Definition at line 734 of file netbase.h.
void NetBase::Connection::RemoveFromWindow |
( |
uint32_t |
bytes | ) |
|
|
inline |
Remove from transmission window when an ack is received.
Definition at line 738 of file netbase.h.
The INet Adress of the client.
Definition at line 692 of file netbase.h.
void* NetBase::Connection::buf |
buffer for split up packets, allocated when needed
Definition at line 690 of file netbase.h.
uint32_t NetBase::Connection::clientnum |
float NetBase::Connection::devRTT |
float NetBase::Connection::estRTT |
int NetBase::Connection::heartbeat |
number of attempts to keep alive connection without ack response
Definition at line 706 of file netbase.h.
int NetBase::Connection::historypos |
csTicks NetBase::Connection::lastRecvPacketTime |
last time packet was received from this connection
Definition at line 704 of file netbase.h.
csString NetBase::Connection::nameAddr |
The adress if provided, usually in clients, else an empty csstring.
Definition at line 694 of file netbase.h.
csHash<uint32_t> NetBase::Connection::packethistoryhash |
keeps track of received packets to drop doubled packets
Definition at line 722 of file netbase.h.
int NetBase::Connection::pcknumin |
The Number of the last incoming packet.
Definition at line 696 of file netbase.h.
int NetBase::Connection::pcknumout |
The Number of the last outgoing packet.
Definition at line 698 of file netbase.h.
uint32_t NetBase::Connection::resends |
Number of resends.
Definition at line 716 of file netbase.h.
csTicks NetBase::Connection::RTO |
uint32_t NetBase::Connection::sends |
Number of reliable sends.
Definition at line 714 of file netbase.h.
bool NetBase::Connection::valid |
Is this already a valid connection?
Definition at line 700 of file netbase.h.
uint32_t NetBase::Connection::window |
The documentation for this class was generated from the following file: