QueryRoutingTable.cpp File Reference

#include "Qt.h" [code]
#include "QueryRoutingTable.h" [code]
#include <math.h>
#include "Imports.cpp" [code]

Include dependency graph for QueryRoutingTable.cpp:

Go to the source code of this file.

Namespaces

namespace  Gnutella
namespace  Gnutella::PacketProcessing
namespace  Gnutella::PacketProcessing::QueryRouting

Functions

static bool Gnutella::PacketProcessing::QueryRouting::isPowerOf2 (quint32 size)
quint8 Gnutella::PacketProcessing::QueryRouting::leftNibbleNonZero (quint8 ch)
quint8 Gnutella::PacketProcessing::QueryRouting::rightNibbleNonZero (quint8 ch)
quint8 Gnutella::PacketProcessing::QueryRouting::checkTwoNibbles (quint8 ch)
quint8 Gnutella::PacketProcessing::QueryRouting::getBitsToOr (quint8 ch, quint8 entryBits)

Variables

static const int Gnutella::PacketProcessing::QueryRouting::A_INT = 0x4F1BBCDC
static const quint8 Gnutella::PacketProcessing::QueryRouting::EntryMask [8]
static const quint8 Gnutella::PacketProcessing::QueryRouting::ValueShift [8] = { 7, 6, 5, 4, 3, 2, 1}