Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

KeepAliveReplyPacket Class Reference

#include <evalogin.h>

Inherits InPacket.

Inheritance diagram for KeepAliveReplyPacket:

Inheritance graph
[legend]
Collaboration diagram for KeepAliveReplyPacket:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 KeepAliveReplyPacket ()
 KeepAliveReplyPacket (unsigned char *buf, int len)
 KeepAliveReplyPacket (const KeepAliveReplyPacket &rhs)
virtual ~KeepAliveReplyPacket ()
const int numOnlineUsers () const
const std::string & getMyIP () const
const short getMyPort () const
KeepAliveReplyPacketoperator= (const KeepAliveReplyPacket &rhs)

Protected Member Functions

virtual void parseBody ()

Private Attributes

std::string myIP
short myPort

Static Private Attributes

static const unsigned char KA_DIVIDER = 0x1f
static int onlineUsers = 0

Detailed Description

Definition at line 113 of file evalogin.h.


Constructor & Destructor Documentation

KeepAliveReplyPacket::KeepAliveReplyPacket  )  [inline]
 

Definition at line 116 of file evalogin.h.

KeepAliveReplyPacket::KeepAliveReplyPacket unsigned char *  buf,
int  len
 

Definition at line 293 of file evalogin.cpp.

KeepAliveReplyPacket::KeepAliveReplyPacket const KeepAliveReplyPacket rhs  ) 
 

Definition at line 298 of file evalogin.cpp.

References getMyIP(), getMyPort(), myIP, myPort, numOnlineUsers(), and onlineUsers.

Here is the call graph for this function:

virtual KeepAliveReplyPacket::~KeepAliveReplyPacket  )  [inline, virtual]
 

Definition at line 119 of file evalogin.h.


Member Function Documentation

const std::string& KeepAliveReplyPacket::getMyIP  )  const [inline]
 

Definition at line 122 of file evalogin.h.

References myIP.

Referenced by KeepAliveReplyPacket(), and operator=().

const short KeepAliveReplyPacket::getMyPort  )  const [inline]
 

Definition at line 123 of file evalogin.h.

References myPort.

Referenced by KeepAliveReplyPacket(), and operator=().

const int KeepAliveReplyPacket::numOnlineUsers  )  const [inline]
 

Definition at line 121 of file evalogin.h.

References onlineUsers.

Referenced by KeepAliveReplyPacket(), and operator=().

KeepAliveReplyPacket & KeepAliveReplyPacket::operator= const KeepAliveReplyPacket rhs  ) 
 

Definition at line 306 of file evalogin.cpp.

References getMyIP(), getMyPort(), myIP, myPort, numOnlineUsers(), and onlineUsers.

Here is the call graph for this function:

void KeepAliveReplyPacket::parseBody  )  [protected, virtual]
 

Reimplemented from InPacket.

Definition at line 315 of file evalogin.cpp.

References InPacket::bodyLength, InPacket::decryptedBuf, KA_DIVIDER, myIP, myPort, and onlineUsers.


Member Data Documentation

const unsigned char KeepAliveReplyPacket::KA_DIVIDER = 0x1f [static, private]
 

Definition at line 129 of file evalogin.h.

Referenced by parseBody().

std::string KeepAliveReplyPacket::myIP [private]
 

Definition at line 131 of file evalogin.h.

Referenced by getMyIP(), KeepAliveReplyPacket(), operator=(), and parseBody().

short KeepAliveReplyPacket::myPort [private]
 

Definition at line 132 of file evalogin.h.

Referenced by getMyPort(), KeepAliveReplyPacket(), operator=(), and parseBody().

int KeepAliveReplyPacket::onlineUsers = 0 [static, private]
 

Definition at line 130 of file evalogin.h.

Referenced by KeepAliveReplyPacket(), numOnlineUsers(), operator=(), and parseBody().


The documentation for this class was generated from the following files:
Generated on Mon May 15 20:51:21 2006 for libeva by  doxygen 1.4.4