The InspIRCd Project
Home | Developers | Wiki | Forums | Bug Tracker | SVN | Download
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

HashSumRequest Class Reference

Send this class to the hashing module to HashSUM a std::string. More...

#include <m_hash.h>

Inheritance diagram for HashSumRequest:

Inheritance graph
[legend]
Collaboration diagram for HashSumRequest:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 HashSumRequest (Module *Me, Module *Target, const std::string &sdata)
 Initialize HashSumRequest for sending.

Detailed Description

Send this class to the hashing module to HashSUM a std::string.

You should make sure you know the state of the module before you send this class, e.g. by first sending an HashResetRequest class. The hash will be returned when you call Send().

Example:

 // ALWAYS ALWAYS reset first, or set your own IV and hex chars.
 HashResetRequest(this, HashModule).Send();
 // Get the Hash sum of the string 'doodads'.
 std::string result = HashSumRequest(this, HashModule, "doodads").Send();

Definition at line 130 of file m_hash.h.


Constructor & Destructor Documentation

HashSumRequest::HashSumRequest Module Me,
Module Target,
const std::string sdata
[inline]
 

Initialize HashSumRequest for sending.

Parameters:
Me A pointer to the sending module
Target A pointer to the hashing module
data The data to be hashed

Definition at line 138 of file m_hash.h.


The documentation for this class was generated from the following file: