nConnectionInfo Struct Reference

#include <nNetwork.h>

Collaboration diagram for nConnectionInfo:

Collaboration graph
[legend]

List of all members.

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< nMessageackMess
tString supportedAuthenticationMethods_

Private Attributes

nAverager packetLoss_


Detailed Description

Definition at line 308 of file nNetwork.h.


Constructor & Destructor Documentation

nConnectionInfo::nConnectionInfo (  ) 

Definition at line 3374 of file nNetwork.cpp.

nConnectionInfo::~nConnectionInfo (  ) 

Definition at line 3375 of file nNetwork.cpp.


Member Function Documentation

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

Parameters:
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 (  ) 

call whenever an an reliable message got sent

Definition at line 3408 of file nNetwork.cpp.

03412 {

void nConnectionInfo::AckReceived (  ) 

call whenever an ackownledgement message arrives

Definition at line 3413 of file nNetwork.cpp.

Referenced by ack_handler().

03417 {

Here is the caller graph for this function:

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().

03422 {

Here is the caller graph for this function:


Member Data Documentation

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().

int nConnectionInfo::ackPending

Definition at line 311 of file nNetwork.h.

Referenced by sn_SendPlanned1(), nNetObject::SyncAll(), and gGame::SyncState().

nPingAverager nConnectionInfo::ping

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().

nBandwidthControl nConnectionInfo::bandwidthControl_

Definition at line 318 of file nNetwork.h.

Referenced by sn_SendPlanned1(), and nNetObject::SyncAll().

nSendBuffer nConnectionInfo::sendBuffer_

Definition at line 321 of file nNetwork.h.

Referenced by nMessage::BroadcastCollected(), nMessage::SendImmediately(), and nNetObject::SyncAll().

nVersion nConnectionInfo::version

Definition at line 324 of file nNetwork.h.

Referenced by ePlayerNetID::CreateVoter(), and login_accept_handler().

tJUST_CONTROLLED_PTR< nMessage > nConnectionInfo::ackMess

Definition at line 327 of file nNetwork.h.

Referenced by rec_peer().

tString nConnectionInfo::supportedAuthenticationMethods_

Definition at line 333 of file nNetwork.h.

nAverager nConnectionInfo::packetLoss_ [private]

Definition at line 346 of file nNetwork.h.


The documentation for this struct was generated from the following files:
Generated on Sat Mar 15 23:47:25 2008 for Armagetron Advanced by  doxygen 1.5.4