ED2KPacket::ServerStatus Class Reference

ServerStatus is a packet sent by servers after establishing a connection, containing number of users and files currently on the server. More...

#include <packets.h>

Inheritance diagram for ED2KPacket::ServerStatus:

ED2KPacket::Packet List of all members.

Public Member Functions

 ServerStatus (std::istream &i)
uint32_t getUsers () const
uint32_t getFiles () const

Private Attributes

uint32_t m_users
uint32_t m_files

Detailed Description

ServerStatus is a packet sent by servers after establishing a connection, containing number of users and files currently on the server.

Usage: Server -> Client

Definition at line 171 of file packets.h.


Constructor & Destructor Documentation

ED2KPacket::ServerStatus::ServerStatus std::istream &  i  ) 
 

Definition at line 221 of file packets.cpp.

References m_files, and m_users.


Member Function Documentation

uint32_t ED2KPacket::ServerStatus::getUsers  )  const [inline]
 

Definition at line 175 of file packets.h.

References m_users.

uint32_t ED2KPacket::ServerStatus::getFiles  )  const [inline]
 

Definition at line 176 of file packets.h.

References m_files.


Member Data Documentation

uint32_t ED2KPacket::ServerStatus::m_users [private]
 

Definition at line 178 of file packets.h.

Referenced by getUsers(), and ServerStatus().

uint32_t ED2KPacket::ServerStatus::m_files [private]
 

Definition at line 179 of file packets.h.

Referenced by getFiles(), and ServerStatus().


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