#include <nNetwork.h>

Public Member Functions | |
| nConnectionInfo () | |
| ~nConnectionInfo () | |
| void | Clear () |
| void | Timestep (REAL dt) |
| call to update time related information | |
| void | ReliableMessageSent () |
| call whenever an an reliable message got sent | |
| void | AckReceived () |
| call whenever an ackownledgement message arrives | |
| REAL | PacketLoss () const |
| returns the average packet loss ratio | |
Public Attributes | |
| nSocket const * | socket |
| int | ackPending |
| nPingAverager | ping |
| nBandwidthControl | bandwidthControl_ |
| nSendBuffer | sendBuffer_ |
| nVersion | version |
| tJUST_CONTROLLED_PTR< nMessage > | ackMess |
| tString | supportedAuthenticationMethods_ |
Private Attributes | |
| nAverager | packetLoss_ |
Definition at line 308 of file nNetwork.h.
| nConnectionInfo::nConnectionInfo | ( | ) |
Definition at line 3374 of file nNetwork.cpp.
| nConnectionInfo::~nConnectionInfo | ( | ) |
Definition at line 3375 of file nNetwork.cpp.
| void nConnectionInfo::Clear | ( | void | ) |
Definition at line 3377 of file nNetwork.cpp.
03377 {Clear();} 03378 nConnectionInfo::~nConnectionInfo(){} 03379 03380 void nConnectionInfo::Clear(){ 03381 socket = NULL; 03382 ackPending = 0; 03383 ping.Reset(); 03384 // crypt = NULL; 03385 03386 supportedAuthenticationMethods_ = ""; 03387 03388 sendBuffer_.Clear(); 03389 03390 bandwidthControl_.Reset(); 03391 03392 ackMess = NULL; 03393 03394 // start with 10% packet loss with low statistical weight
| void nConnectionInfo::Timestep | ( | REAL | dt | ) |
call to update time related information
| dt | call whenever an an reliable message got sent |
Definition at line 3396 of file nNetwork.cpp.
03400 { 03401 // update ping 03402 ping.Timestep( dt ); 03403 03404 // update bandwidth control 03405 bandwidthControl_.Update( dt ); 03406
| void nConnectionInfo::ReliableMessageSent | ( | ) |
| void nConnectionInfo::AckReceived | ( | ) |
call whenever an ackownledgement message arrives
Definition at line 3413 of file nNetwork.cpp.
Referenced by ack_handler().

| REAL nConnectionInfo::PacketLoss | ( | ) | const |
returns the average packet loss ratio
< returns the average packet loss ratio
Definition at line 3418 of file nNetwork.cpp.
Referenced by sn_Sync().

| nSocket const* nConnectionInfo::socket |
Definition at line 310 of file nNetwork.h.
Referenced by nServerInfo::GetBigServerInfoCommon(), nServerInfo::GiveBigServerInfo(), nServerInfo::GiveSmallServerInfo(), rec_peer(), se_ReadUser(), sn_DiscardFromControlSocket(), and sn_SendPlanned1().
Definition at line 311 of file nNetwork.h.
Referenced by sn_SendPlanned1(), nNetObject::SyncAll(), and gGame::SyncState().
Definition at line 313 of file nNetwork.h.
Referenced by gNetPlayerWall::CopyIntoGrid(), ePlayerNetID::ePlayerNetID(), GameLoop(), nServerLag::Ping(), eTimer::ReadSync(), ready_handler(), gNetPlayerWall::RealWallReceived(), se_GetPing(), sn_GetTimeout(), and gCycleMovement::TimestepCore().
Definition at line 318 of file nNetwork.h.
Referenced by sn_SendPlanned1(), and nNetObject::SyncAll().
Definition at line 321 of file nNetwork.h.
Referenced by nMessage::BroadcastCollected(), nMessage::SendImmediately(), and nNetObject::SyncAll().
Definition at line 324 of file nNetwork.h.
Referenced by ePlayerNetID::CreateVoter(), and login_accept_handler().
Definition at line 333 of file nNetwork.h.
nAverager nConnectionInfo::packetLoss_ [private] |
Definition at line 346 of file nNetwork.h.
1.5.4