00001 /* 00002 00003 Copyright (C) 2006-2007 by Peter Dimov. 00004 00005 This file is part of Calitko (http://www.calitko.org). 00006 00007 Calitko is free software; you can redistribute it and/or modify 00008 it under the terms of the GNU General Public License as published by 00009 the Free Software Foundation; either version 2 of the License, or 00010 (at your option) any later version. 00011 00012 Calitko is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 GNU General Public License for more details. 00016 00017 You should have received a copy of the GNU General Public License 00018 along with Calitko; if not, write to the Free Software 00019 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00020 00021 */ 00022 00023 #include "Gnutella/LocalPeer.h" // \todo Try to avoid! Needed by PongHandler 00024 #include "Gnutella/Handshaking/SlotAllocator.h" 00025 #include "Gnutella/PacketProcessing/PacketProcessor.h" 00026 #include "Gnutella/PacketProcessing/PacketSession.h" 00027 #include "Gnutella/Packets/Packet.h" 00028 #include "Gnutella/Packets/Ping.h" 00029 #include "Gnutella/Packets/Pong.h" 00030 #include "Protocols/Transports/UdpConnection.h" 00031 #include "Protocols/Transports/UdpSwitch.h" 00032 00033 #include "Gnutella/Packets/Extensions/GgepBlock.h" 00034 #include "Gnutella/Packets/Extensions/Ggeps/DailyUptime.h" 00035 #include "Gnutella/Packets/Extensions/Ggeps/IpPort.h" 00036 #include "Gnutella/Packets/Extensions/Ggeps/PackedHostCaches.h" 00037 #include "Gnutella/Packets/Extensions/Ggeps/SupportsCachedPongs.h" 00038 #include "Gnutella/Packets/Extensions/Ggeps/UdpHostCache.h" 00039 #include "Gnutella/Packets/Extensions/Ggeps/Ultrapeer.h" 00040 #include "Gnutella/Packets/Extensions/Ggeps/VendorCode.h" 00041 00042 using Gnutella::Packets::Extensions::GgepBlock; 00043 using Gnutella::Packets::Extensions::Ggeps::DailyUptime; 00044 using Gnutella::Packets::Extensions::Ggeps::IpPort; 00045 using Gnutella::Packets::Extensions::Ggeps::PackedHostCaches; 00046 using Gnutella::Packets::Extensions::Ggeps::SupportsCachedPongs; 00047 // Conflict with Gnutella::Bootstrapping::UdPHostCache - declare locally: 00048 //using Gnutella::Packets::Extensions::Ggeps::UdpHostCache; 00049 using Gnutella::Packets::Extensions::Ggeps::Ultrapeer; 00050 using Gnutella::Packets::Extensions::Ggeps::VendorCode;