dht::store_data Class Reference

Represents data that is stored to DHT. More...

#include <dht/store_data.h>

Inheritance diagram for dht::store_data:

dht::basic_data dht::key dht::value List of all members.

Public Member Functions

bool allow_hash_transform () const
void allow_hash_transform (bool a)

Friends

class key
class value

Detailed Description

Represents data that is stored to DHT.

Common base class to key and value types, not used by itself.

Same as basic_data, but has an extra parameter flag which is used by dht::client implementations to determine if the passed key & value must be taken literally or if a one way hash can be performed on them to squeeze the data into something that fits into the DHT.


Member Function Documentation

bool dht::store_data::allow_hash_transform (  )  const [inline]

Returns:
true if the data is allowed to be transformed, false if not.

void dht::store_data::allow_hash_transform ( bool  a  )  [inline]

Parameters:
a if true, hash transformations allowed.


The documentation for this class was generated from the following file:
Generated on Thu Mar 1 16:18:47 2007 for libdht by  doxygen 1.5.1