Quoting nn hust <nzjem...@gmail.com> from ml.softs.gtk-gnutella.devel: :How do Ultrapeer notice its address to the Gnutella network£¬so leaves can :connect to it¡£Does it broadcast its address timely or do something else£¿
During Gnutella handshakes, the IP address is communicated by replying servents through the Remote-IP header. During HTTP exchanges, this is done through the X-Remote-IP header. For instance, if your external IP address is 1.2.3.4 and you connect to the host 5.6.7.8 through HTTP, then that host will echo: X-Remote-IP: 1.2.3.4 in the HTTP reply, letting 1.2.3.4 know what its external IP address is on that particular connection. Gtk-gnutella monitors the IP address that is echoed to it by other servents and as soon as 3 different peers report the same IP, it considers that IP to be the one it bears externally. Raphael ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ gtk-gnutella-devel mailing list gtk-gnutella-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel