Developers.Handshake: Difference between revisions

From Shareaza Wiki
Jump to navigation Jump to search
(Importing page from Tikiwiki)
 
m (1 revision)
 

Latest revision as of 20:09, 20 June 2009

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.