QueryExtension.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef PROTOCOLS__GNUTELLA__PACKETS__EXTENSIONS__QUERY_EXTENSION_H
00024 #define PROTOCOLS__GNUTELLA__PACKETS__EXTENSIONS__QUERY_EXTENSION_H
00025
00026 #include "Imports.h"
00027 #include "GgepBlock.h"
00028 #include "HugeGemBlock.h"
00029
00030 namespace Protocols {
00031 namespace Gnutella {
00032 namespace Packets {
00033 namespace Extensions {
00034
00036 struct MinSpeed
00037 {
00038 bool isValid;
00039 bool isFirewalled;
00040 bool wantXmlMetadata;
00041 bool isLeafGuidedDynamicQuery;
00042 bool isAllowedGgepH;
00043 bool isOutOfBoundQuery;
00044 uchar maxQueryHits;
00045
00046 MinSpeed (bool valid = false, bool firewalled = false,
00047 bool xmlMetadata = false, bool leafGuidedDynamicQuery = false,
00048 bool allowedGgepH = false, bool outOfBoundQuery = false,
00049 uchar queryHitsMax = 0)
00050 : isValid (valid), isFirewalled (firewalled),
00051 wantXmlMetadata (xmlMetadata),
00052 isLeafGuidedDynamicQuery (leafGuidedDynamicQuery),
00053 isAllowedGgepH (allowedGgepH), isOutOfBoundQuery (outOfBoundQuery),
00054 maxQueryHits (queryHitsMax)
00055 {}
00056
00057 bool operator== (const MinSpeed &speed);
00058 bool operator!= (const MinSpeed &speed);
00059 };
00060
00062 typedef HugeGemBlock QueryData;
00063
00064 }
00065 }
00066 }
00067 }
00068
00069 #endif // PROTOCOLS__GNUTELLA__PACKETS__EXTENSIONS__QUERY_EXTENSION_H