On 21 Feb 2007, [EMAIL PROTECTED] wrote:
> Thanks. I have corrected it.
There is duplicate code in nodes.c. Search for BearShare. The first
one is needed because the n->attrs is examined.
Index: nodes.c
===================================================================
--- nodes.c (revision 12909)
+++ nodes.c (working copy)
@@ -4816,32 +4816,6 @@
}
}
- /* X-Ultrapeer -- support for ultra peer mode */
-
- field = header_get(head, "X-Ultrapeer");
- if (field) {
- n->attrs |= NODE_A_CAN_ULTRA;
- if (0 == ascii_strcasecmp(field, "true"))
- n->attrs |= NODE_A_ULTRA;
- else if (0 == ascii_strcasecmp(field, "false")) {
- if (current_peermode == NODE_P_ULTRA)
- n->flags |= NODE_F_LEAF;
- }
- } else {
- /*
- * BearShare 4.3.x decided to no longer send X-Ultrapeer on
connection,
- * but rather include the X-Ultrapeer-Needed header.
Hopefully, only
- * their UPs will send back such a header.
- * --RAM, 01/11/2003
- */
-
- field = header_get(head, "X-Ultrapeer-Needed");
- if (field)
- n->attrs |= NODE_A_CAN_ULTRA | NODE_A_ULTRA;
- else
- n->attrs |= NODE_A_NO_ULTRA;
- }
-
if (gnet_deflate_enabled) {
/*
* Accept-Encoding -- decompression support on the remote side
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Gtk-gnutella-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel