|
Planeshift
|
This class holds data for a connection. More...
#include <netbase.h>
Public Member Functions | |
| void | AddToWindow (uint32_t bytes) |
| Add to window when reliable data is in transit. | |
| Connection (uint32_t num=0) | |
| uint32_t | GetNextPacketID () |
| bool | isValid () const |
| bool | IsWindowFull () |
| Check if the reliable transmission window is full. | |
| void | RemoveFromWindow (uint32_t bytes) |
| Remove from transmission window when an ack is received. | |
| ~Connection () | |
Public Attributes | |
| SOCKADDR_IN | addr |
| The INet Adress of the client. | |
| void * | buf |
| buffer for split up packets, allocated when needed | |
| uint32_t | clientnum |
| the client num | |
| float | devRTT |
| RTT deviance. | |
| float | estRTT |
| Estimated RTT. | |
| int | heartbeat |
| number of attempts to keep alive connection without ack response | |
| int | historypos |
| csTicks | lastRecvPacketTime |
| last time packet was received from this connection | |
| csString | nameAddr |
| The adress if provided, usually in clients, else an empty csstring. | |
| csHash< uint32_t > | packethistoryhash |
| uint32_t | packethistoryid [MAXPACKETHISTORY] |
| keeps track of received packets to drop doubled packets | |
| uint32_t | packethistoryoffset [MAXPACKETHISTORY] |
| int | pcknumin |
| The Number of the last incoming packet. | |
| int | pcknumout |
| The Number of the last outgoing packet. | |
| uint32_t | resends |
| Number of resends. | |
| csTicks | RTO |
| timeout | |
| uint32_t | sends |
| Number of reliable sends. | |
| bool | valid |
| Is this already a valid connection? | |
| uint32_t | window |
| NetBase::Connection::Connection | ( | uint32_t | num = 0 | ) |
| NetBase::Connection::~Connection | ( | ) |
| void NetBase::Connection::AddToWindow | ( | uint32_t | bytes | ) | [inline] |
| uint32_t NetBase::Connection::GetNextPacketID | ( | ) | [inline] |
| bool NetBase::Connection::IsWindowFull | ( | ) | [inline] |
| void NetBase::Connection::RemoveFromWindow | ( | uint32_t | bytes | ) | [inline] |
| SOCKADDR_IN NetBase::Connection::addr |
| void* NetBase::Connection::buf |
| uint32_t NetBase::Connection::clientnum |
| csString NetBase::Connection::nameAddr |
| csHash<uint32_t> NetBase::Connection::packethistoryhash |
| uint32_t NetBase::Connection::packethistoryid[MAXPACKETHISTORY] |
| uint32_t NetBase::Connection::packethistoryoffset[MAXPACKETHISTORY] |
| uint32_t NetBase::Connection::resends |
| csTicks NetBase::Connection::RTO |
| uint32_t NetBase::Connection::sends |
| uint32_t NetBase::Connection::window |
1.7.3