ED2KPacket::IdChange Class Reference

IdChange packet is sent by servers after establishing a connection with the server to notify the client of their new ID. More...

#include <packets.h>

Inheritance diagram for ED2KPacket::IdChange:

ED2KPacket::Packet List of all members.

Public Member Functions

 IdChange (std::istream &i)
uint32_t getId () const
uint32_t getFlags () const

Private Attributes

uint32_t m_id
uint32_t m_flags
 Lugdunum 16.44+ servers send supported features.

Detailed Description

IdChange packet is sent by servers after establishing a connection with the server to notify the client of their new ID.

In eDonkey2000 network, ID's below 0x00ffffff are considered "low-id" and penalized. The ID is actually the ip address of the client, in network byte order, which the server detects by making a client<->client connection to our listening socket. If the server is unable to connect to our listening socket, it sends us lowID message and assigns us a low (< 0x00ffffff) ID.

New lugdunum (16.44+) servers also send additional u32 containing supported features bitfield.

Usage: Server -> Client

Definition at line 196 of file packets.h.


Constructor & Destructor Documentation

ED2KPacket::IdChange::IdChange std::istream &  i  ) 
 

Definition at line 228 of file packets.cpp.

References m_flags.


Member Function Documentation

uint32_t ED2KPacket::IdChange::getId  )  const [inline]
 

Definition at line 200 of file packets.h.

References m_id.

uint32_t ED2KPacket::IdChange::getFlags  )  const [inline]
 

Definition at line 201 of file packets.h.

References m_flags.


Member Data Documentation

uint32_t ED2KPacket::IdChange::m_id [private]
 

Definition at line 203 of file packets.h.

Referenced by getId().

uint32_t ED2KPacket::IdChange::m_flags [private]
 

Lugdunum 16.44+ servers send supported features.

Definition at line 204 of file packets.h.

Referenced by getFlags(), and IdChange().


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