ED2KPacket::ServerList Class Reference

ServerList packet is sent by servers in response to GetServerList packet, and contains a list of known servers to the source. More...

#include <packets.h>

Inheritance diagram for ED2KPacket::ServerList:

ED2KPacket::Packet List of all members.

Public Member Functions

 ServerList (std::istream &i)
uint32_t getCount () const
IPV4Address getServer (uint32_t n) const

Private Attributes

std::vector< IPV4Address > m_servers

Detailed Description

ServerList packet is sent by servers in response to GetServerList packet, and contains a list of known servers to the source.

Usage: Server -> Client

Definition at line 246 of file packets.h.


Constructor & Destructor Documentation

ED2KPacket::ServerList::ServerList std::istream &  i  ) 
 

Definition at line 270 of file packets.cpp.


Member Function Documentation

uint32_t ED2KPacket::ServerList::getCount  )  const [inline]
 

Definition at line 250 of file packets.h.

References m_servers.

IPV4Address ED2KPacket::ServerList::getServer uint32_t  n  )  const [inline]
 

Definition at line 251 of file packets.h.

References m_servers.


Member Data Documentation

std::vector<IPV4Address> ED2KPacket::ServerList::m_servers [private]
 

Definition at line 253 of file packets.h.

Referenced by getCount(), and getServer().


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