ED2KPacket::ServerIdent Class Reference

ServerIdent is a response from server to GetServerList packet, and includes information about the server. More...

#include <packets.h>

Inheritance diagram for ED2KPacket::ServerIdent:

ED2KPacket::Packet List of all members.

Public Member Functions

 ServerIdent (std::istream &i)
Hash< MD4Hash > getHash () const
IPV4Address getAddr () const
std::string getName () const
std::string getDesc () const

Private Attributes

Hash< MD4Hash > m_hash
 Server hash.
IPV4Address m_addr
 Server ip address/port.
std::string m_name
 Server name.
std::string m_desc
 Server description.

Detailed Description

ServerIdent is a response from server to GetServerList packet, and includes information about the server.

Usage: Server -> Client

Definition at line 225 of file packets.h.


Constructor & Destructor Documentation

ED2KPacket::ServerIdent::ServerIdent std::istream &  i  ) 
 

Definition at line 249 of file packets.cpp.

References CT_SERVERDESC, CT_SERVERNAME, Tag::getOpcode(), Tag::getStr(), m_addr, m_desc, m_hash, m_name, and warnUnHandled().


Member Function Documentation

Hash<MD4Hash> ED2KPacket::ServerIdent::getHash  )  const [inline]
 

Definition at line 229 of file packets.h.

References m_hash.

IPV4Address ED2KPacket::ServerIdent::getAddr  )  const [inline]
 

Definition at line 230 of file packets.h.

References m_addr.

std::string ED2KPacket::ServerIdent::getName  )  const [inline]
 

Definition at line 231 of file packets.h.

References m_name.

std::string ED2KPacket::ServerIdent::getDesc  )  const [inline]
 

Definition at line 232 of file packets.h.

References m_desc.


Member Data Documentation

Hash<MD4Hash> ED2KPacket::ServerIdent::m_hash [private]
 

Server hash.

Definition at line 234 of file packets.h.

Referenced by getHash(), and ServerIdent().

IPV4Address ED2KPacket::ServerIdent::m_addr [private]
 

Server ip address/port.

Definition at line 235 of file packets.h.

Referenced by getAddr(), and ServerIdent().

std::string ED2KPacket::ServerIdent::m_name [private]
 

Server name.

Definition at line 236 of file packets.h.

Referenced by getName(), and ServerIdent().

std::string ED2KPacket::ServerIdent::m_desc [private]
 

Server description.

Definition at line 237 of file packets.h.

Referenced by getDesc(), and ServerIdent().


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