Mixes for Privacy and Anonymity in the Internet
Public Member Functions | Static Public Member Functions | Private Attributes
CALastMixChannelList Class Reference

List of all members.

Public Member Functions

 CALastMixChannelList ()
 ~CALastMixChannelList ()
SINT32 add (HCHANNEL id, CASocket *pSocket, CASymCipher *pCipher, CAQueue *pQueue)
lmChannelListEntryget (HCHANNEL channelIn)
lmChannelListEntrygetFirstSocket ()
lmChannelListEntrygetNextSocket ()
SINT32 removeChannel (HCHANNEL channelIn)
UINT32 getSize ()

Static Public Member Functions

static SINT32 test ()

Private Attributes

UINT32 m_nChannels
LP_lmChannelListEntrym_HashTable
 The Hash-Table of all channels.
lmChannelListm_listSockets
 Pointer to the head of a list of all sockets.
lmChannelListm_listSocketsNext
 Next Element in the enumeration of all sockets.
CAMutex m_Mutex
 This mutex is used in all functions and makes them thread safe.

Constructor & Destructor Documentation


Member Function Documentation

SINT32 CALastMixChannelList::add ( HCHANNEL  id,
CASocket pSocket,
CASymCipher pCipher,
CAQueue pQueue 
)

References m_nChannels.

Referenced by CALastMixA::loop().


Member Data Documentation

The Hash-Table of all channels.

Referenced by add(), CALastMixChannelList(), get(), removeChannel(), and ~CALastMixChannelList().

Pointer to the head of a list of all sockets.

Referenced by add(), CALastMixChannelList(), getFirstSocket(), and removeChannel().

Next Element in the enumeration of all sockets.

Referenced by CALastMixChannelList(), getFirstSocket(), getNextSocket(), and removeChannel().

This mutex is used in all functions and makes them thread safe.