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

HashHexRequest Class Reference

Send this class to the hashing module to change the hex sequence to use for generating the returned value. More...

#include <m_hash.h>

Inheritance diagram for HashHexRequest:

Inheritance graph
[legend]
Collaboration diagram for HashHexRequest:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 HashHexRequest (Module *Me, Module *Target, const char *sdata)
 Initialize HashHexRequest for sending.

Detailed Description

Send this class to the hashing module to change the hex sequence to use for generating the returned value.

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 default value for the hex sequence is "0123456789abcdef". Only in very special circumstances should you need to change the hex sequence (see for example m_cloaking.cpp).

Example:

 static const char tab[] = "fedcba9876543210";
 HashHexRequest(this, HashModule, tab);

Definition at line 181 of file m_hash.h.


Constructor & Destructor Documentation

HashHexRequest::HashHexRequest Module Me,
Module Target,
const char *  sdata
[inline]
 

Initialize HashHexRequest for sending.

Parameters:
Me A pointer to the sending module
Target A pointer to the hashing module
data The hex sequence to use. This should contain exactly 16 ASCII characters, terminated by a NULL char.

Definition at line 190 of file m_hash.h.


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