Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

hash.c File Reference

Services hash tables. More...

#include "services.h"
#include "queue.h"
#include "nickserv.h"
#include "hash.h"
#include "chanserv.h"

Go to the source code of this file.

Functions

u_int16_t getHashKey (const char *hname)
 Take a string and hash it. The hash is a 16-bit unsigned value, for now.


Variables

UserHashEnt UserHash [NICKHASHSIZE]
 Hash of online users.

RegNickHashEnt RegNickHash [NICKHASHSIZE]
 Hash of registered nicks.

RegNickIdHashEnt RegNickIdHash [IDHASHSIZE]
 Hash of regnick id nums.

ChanHashEnt ChanHash [CHANHASHSIZE]
 Hash of channels.

RegChanHashEnt RegChanHash [CHANHASHSIZE]
 Hash of registered chans.

CloneHashEnt CloneHash [CLONEHASHSIZE]
 Hash of clone hosts.

ChanTrigHashEnt ChanTrigHash [CHANTRIGHASHSIZE]
 Hash of channel trigger data.


Detailed Description

Services hash tables.

Procedures related to getting services hash tables indices and manipulating/searching such tables.

Author:
Chip Norkus

Max Byrd

Greg Poma

Date:
1996-1997
Id
hash.c,v 1.1.1.1 2003/07/04 02:53:45 Mysid Exp

Definition in file hash.c.


Function Documentation

u_int16_t getHashKey const char *  hname  ) 
 

Take a string and hash it. The hash is a 16-bit unsigned value, for now.

Parameters:
hname Name to get the hash key of

Definition at line 69 of file hash.c.

References dlogEntry().

Referenced by addChan(), AddChannelTrigger(), addChanUser(), addClone(), addNick(), addRegChan(), addRegNick(), delChan(), delChanUser(), delClone(), delRegChan(), FindChannelTrigger(), getChanData(), getChanUserData(), getCloneData(), getNickData(), getRegChanData(), and getRegNickData().


Generated at Sat Oct 25 20:56:11 2003 for Services using Doxygen.
Services Copyr. 1996-2001 Chip Norkus, Max Byrd, Greg Poma, Michael Graff, James Hess, Dafydd James. All rights reserved See LICENSE for licensing information.