fgms 0.11.8
The
FlightGear MultiPlayer Server
project
FG_ListElement Class Reference

Represent a generic list element. More...

#include <fg_list.hxx>

Inheritance diagram for FG_ListElement:
FG_Player

Public Member Functions

 FG_ListElement (const string &Name)
 
 FG_ListElement (const FG_ListElement &P)
 
 ~FG_ListElement ()
 
void operator= (const FG_ListElement &P)
 
virtual bool operator== (const FG_ListElement &P)
 
void UpdateRcvd (size_t bytes)
 
void UpdateSent (size_t bytes)
 

Public Attributes

netAddress Address
 The network address of this element. More...
 
uint64_t BytesRcvd
 Count of bytes recieved from client. More...
 
uint64_t BytesSent
 Count of bytes sent to client. More...
 
size_t ID
 The ID of this entry. More...
 
time_t JoinTime
 The time this entry was added to the list. More...
 
time_t LastSeen
 timestamp of last seen packet from this element More...
 
time_t LastSent
 timestamp of last sent packet to this element More...
 
string Name
 The callsign (or name) More...
 
uint64_t PktsRcvd
 Count of packets recieved from client. More...
 
uint64_t PktsSent
 Count of packets sent to client. More...
 
time_t Timeout
 The Timeout of this entry. More...
 

Static Public Attributes

static const size_t NONE_EXISTANT = (size_t) -1
 

Protected Member Functions

 FG_ListElement ()
 
void assign (const FG_ListElement &P)
 

Detailed Description

Represent a generic list element.

Definition at line 47 of file fg_list.hxx.

Constructor & Destructor Documentation

FG_ListElement::FG_ListElement ( const string &  Name)

every element has a a name

Definition at line 34 of file fg_list.cxx.

FG_ListElement::FG_ListElement ( const FG_ListElement P)

Definition at line 70 of file fg_list.cxx.

FG_ListElement::~FG_ListElement ( )

Definition at line 80 of file fg_list.cxx.

FG_ListElement::FG_ListElement ( )
protected

Definition at line 53 of file fg_list.cxx.

Member Function Documentation

void FG_ListElement::assign ( const FG_ListElement P)
protected

Definition at line 113 of file fg_list.cxx.

Referenced by FG_Player::assign().

void FG_ListElement::operator= ( const FG_ListElement P)

Definition at line 88 of file fg_list.cxx.

bool FG_ListElement::operator== ( const FG_ListElement P)
virtual

Definition at line 99 of file fg_list.cxx.

void FG_ListElement::UpdateRcvd ( size_t  bytes)

Definition at line 147 of file fg_list.cxx.

Referenced by FG_SERVER::AddBadClient().

void FG_ListElement::UpdateSent ( size_t  bytes)

Definition at line 134 of file fg_list.cxx.

Member Data Documentation

uint64_t FG_ListElement::BytesRcvd

Count of bytes recieved from client.

Definition at line 75 of file fg_list.hxx.

Referenced by assign(), FG_CLI::cmd_blacklist_show(), FG_CLI::cmd_relay_show(), and FG_CLI::cmd_user_show().

uint64_t FG_ListElement::BytesSent

Count of bytes sent to client.

Definition at line 77 of file fg_list.hxx.

Referenced by assign(), FG_CLI::cmd_crossfeed_show(), FG_CLI::cmd_relay_show(), and FG_CLI::cmd_user_show().

time_t FG_ListElement::JoinTime

The time this entry was added to the list.

Definition at line 65 of file fg_list.hxx.

Referenced by assign(), FG_Player::assign(), FG_CLI::cmd_blacklist_show(), FG_CLI::cmd_crossfeed_show(), FG_CLI::cmd_relay_show(), and FG_CLI::cmd_user_show().

time_t FG_ListElement::LastSeen

timestamp of last seen packet from this element

Definition at line 67 of file fg_list.hxx.

Referenced by FG_SERVER::AddClient(), assign(), FG_Player::assign(), FG_CLI::cmd_blacklist_show(), FG_CLI::cmd_relay_show(), and FG_CLI::cmd_user_show().

time_t FG_ListElement::LastSent

timestamp of last sent packet to this element

Definition at line 69 of file fg_list.hxx.

Referenced by assign(), FG_Player::assign(), and FG_CLI::cmd_crossfeed_show().

const size_t FG_ListElement::NONE_EXISTANT = (size_t) -1
static

mark a nonexisting element

Definition at line 55 of file fg_list.hxx.

Referenced by FG_SERVER::HandlePacket(), FG_SERVER::Init(), FG_SERVER::IsInRange(), FG_SERVER::Show_Stats(), and FG_SERVER::UpdateTracker().

uint64_t FG_ListElement::PktsRcvd

Count of packets recieved from client.

Definition at line 71 of file fg_list.hxx.

Referenced by assign(), FG_CLI::cmd_blacklist_show(), FG_CLI::cmd_relay_show(), and FG_CLI::cmd_user_show().

uint64_t FG_ListElement::PktsSent

Count of packets sent to client.

Definition at line 73 of file fg_list.hxx.

Referenced by assign(), FG_CLI::cmd_crossfeed_show(), FG_CLI::cmd_relay_show(), and FG_CLI::cmd_user_show().

time_t FG_ListElement::Timeout

The Timeout of this entry.

Definition at line 59 of file fg_list.hxx.

Referenced by assign(), FG_CLI::cmd_blacklist_show(), and FG_CLI::cmd_user_show().


The documentation for this class was generated from the following files: