Main Page | Data Structures | Directories | File List | Data Fields | Globals

ssp_items.h File Reference

Item abstraction. More...

#include <apr.h>

Go to the source code of this file.

Typedefs

typedef apr_uint32_t( ssp_hash_function_t )(void *item)
 Signature for user provided hash functions.


Detailed Description

Item abstraction.

The bloom filter and counter work on sets or streams of items. Items are represented by data of type void * and the only operation on those are hash functions.


Typedef Documentation

typedef apr_uint32_t( ssp_hash_function_t)(void *item)
 

Signature for user provided hash functions.

The type ssp_hash_function_t defines the signature of of the two hash functions the user must provide on his items. They take a items, represented by a void * pointer, and return up to 32 bits of psuedo random hash derived from the item. If fewer bits are needed in the filter/counters you instantiate only the low order bits are used. Of course, in that scenario the user's hash functions need not create more hash bits.


Generated on Thu Jul 28 22:20:53 2005 for HTP - a library for realtime detection of hotspots by  doxygen 1.4.4