Stun Server
Compliant with the latest RFCs including 5389, 5769, and 5780
discover the local host's own external IP address
|
#include <fasthash.h>
Classes | |
struct | Item |
struct | ItemNode |
Public Member Functions | |
FastHashBase () | |
FastHashBase (size_t fsize, size_t tsize, Item *nodelist, ItemNode *itemnodelist, ItemNode **table, int *indexlist) | |
void | Init (size_t fsize, size_t tsize, Item *nodelist, ItemNode *itemnodelist, ItemNode **table, int *indexlist) |
void | Reset () |
bool | IsValid () |
size_t | Size () |
size_t | GetMaxCapacity () |
size_t | GetTableWidth () |
int | Insert (const K &key, V &value) |
int | Remove (const K &key) |
V * | Lookup (const K &key) |
bool | Exists (const K &key) |
Item * | LookupByIndex (size_t index) |
V * | LookupValueByIndex (size_t index) |
Protected Types | |
typedef ItemNode * | ItemNodePtr |
Protected Member Functions | |
FastHashBase (const FastHashBase &) | |
FastHashBase & | operator= (const FastHashBase &) |
bool | operator== (const FastHashBase &) |
ItemNode * | Find (const K &key, size_t *pHashIndex=NULL, ItemNode **ppPrev=NULL) |
void | ReIndex () |
void | UpdateIndexWithAdd (ItemNode *pNode) |
void | UpdateIndexWithRemove (ItemNode *pNode) |
Protected Attributes | |
size_t | _fsize |
size_t | _tsize |
Item * | _nodes |
ItemNode * | _itemnodes |
ItemNode * | _freelist |
ItemNodePtr * | _lookuptable |
int * | _indexlist |
bool | _fIndexValid |
size_t | _indexStart |
size_t | _size |
Definition at line 56 of file fasthash.h.
|
protected |
Definition at line 75 of file fasthash.h.
|
inlineprotected |
Definition at line 93 of file fasthash.h.
|
inline |
Definition at line 210 of file fasthash.h.
|
inline |
Definition at line 216 of file fasthash.h.
|
inline |
Definition at line 363 of file fasthash.h.
|
inlineprotected |
Definition at line 99 of file fasthash.h.
|
inline |
Definition at line 274 of file fasthash.h.
|
inline |
Definition at line 279 of file fasthash.h.
|
inline |
Definition at line 221 of file fasthash.h.
|
inline |
Definition at line 284 of file fasthash.h.
|
inline |
Definition at line 264 of file fasthash.h.
|
inline |
Definition at line 351 of file fasthash.h.
|
inline |
Definition at line 368 of file fasthash.h.
|
inline |
Definition at line 392 of file fasthash.h.
|
inlineprotected |
Definition at line 94 of file fasthash.h.
|
inlineprotected |
Definition at line 95 of file fasthash.h.
|
inlineprotected |
Definition at line 128 of file fasthash.h.
|
inline |
Definition at line 316 of file fasthash.h.
|
inline |
Definition at line 239 of file fasthash.h.
|
inline |
Definition at line 269 of file fasthash.h.
|
inlineprotected |
Definition at line 152 of file fasthash.h.
|
inlineprotected |
Definition at line 166 of file fasthash.h.
|
protected |
Definition at line 87 of file fasthash.h.
|
protected |
Definition at line 82 of file fasthash.h.
|
protected |
Definition at line 77 of file fasthash.h.
|
protected |
Definition at line 86 of file fasthash.h.
|
protected |
Definition at line 88 of file fasthash.h.
|
protected |
Definition at line 81 of file fasthash.h.
|
protected |
Definition at line 83 of file fasthash.h.
|
protected |
Definition at line 80 of file fasthash.h.
|
protected |
Definition at line 90 of file fasthash.h.
|
protected |
Definition at line 78 of file fasthash.h.