Developers.Handshake

From Shareaza Wiki
Revision as of 20:09, 20 June 2009 by Kevogod (talk | contribs) (1 revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Handshake

The following files contain handshake code:

  • G1Neighbour.cpp
  • G2Neighbour.cpp
  • Handshake.cpp
  • Handshakes.cpp
  • Neighbour.cpp
  • NeighboursWithConnect.cpp
  • NeighboursBase.cpp
  • Network.cpp
  • ShakeNeighbour.cpp

The first thing a Gnutella program tells another is GNUTELLA CONNECT. If you search the source code for this, it's in CShakeNeighbour. This class inherits from CNeighbour(PROTOCOL_NULL). So, I'll start at the top of Neighbour.cpp.

It looks like CNeighbour represents a remote computer somewhere on the Internet that Shareaza has connected to. It's the base class for CEDNeighbour, CG1Neighbour, and CG2Neighbour, the objects that represent a connected computer running eDonkey2000, Gnutella, and Gnutella2.


CNeighbour inherts from CConnection. I'm going to comment these two classes first.