Mixe for Privacy and Anonymity in the Internet
|
#include "StdAfx.h"
#include "CAAccountingInstance.hpp"
#include "CAAccountingControlChannel.hpp"
#include "CABase64.hpp"
#include "CAMsg.hpp"
#include "CAUtil.hpp"
#include "CASignature.hpp"
#include "CAThreadPool.hpp"
#include "CAXMLErrorMessage.hpp"
#include "Hashtable.hpp"
#include "packetintro.h"
#include "CALibProxytest.hpp"
Go to the source code of this file.
Macros | |
#define | JAP_DIGEST_LENGTH 28 |
Functions | |
bool | testAndSetLoginOwner (struct AccountLoginHashEntry *loginEntry, fmHashTableEntry *ownerRef) |
if the current login entry isn't locked by a login thread the calling login-thread obtains ownership More... | |
bool | resetLoginOngoing (struct AccountLoginHashEntry *loginEntry, fmHashTableEntry *ownerRef) |
indicates that the ongoing login process for this entry is finished but doesn't reset ownership. More... | |
bool | testLoginEntryOwner (struct AccountLoginHashEntry *loginEntry, fmHashTableEntry *ownerRef) |
tests whether the corresponding ownerEntry owns this loginEntry. More... | |
bool | isLoginOngoing (struct AccountLoginHashEntry *loginEntry, fmHashTableEntry *ownerRef) |
test whether this entry is currently resrved by an ongoing login process. More... | |
bool | testLoginEntryOwner_internal (struct AccountLoginHashEntry *loginEntry, fmHashTableEntry *ownerRef) |
#define JAP_DIGEST_LENGTH 28 |
Definition at line 49 of file CAAccountingInstance.cpp.
bool isLoginOngoing | ( | struct AccountLoginHashEntry * | loginEntry, |
fmHashTableEntry * | ownerRef | ||
) |
test whether this entry is currently resrved by an ongoing login process.
Definition at line 3839 of file CAAccountingInstance.cpp.
References CAMutex::lock(), AccountLoginHashEntry::loginOngoing, AccountLoginHashEntry::ownerLock, and CAMutex::unlock().
Referenced by CAAccountingInstance::cleanupTableEntry().
bool resetLoginOngoing | ( | struct AccountLoginHashEntry * | loginEntry, |
fmHashTableEntry * | ownerRef | ||
) |
indicates that the ongoing login process for this entry is finished but doesn't reset ownership.
Definition at line 3806 of file CAAccountingInstance.cpp.
References CAMutex::lock(), AccountLoginHashEntry::loginOngoing, AccountLoginHashEntry::ownerLock, testLoginEntryOwner_internal(), and CAMutex::unlock().
Referenced by CAAccountingInstance::unlockLogin().
bool testAndSetLoginOwner | ( | struct AccountLoginHashEntry * | loginEntry, |
fmHashTableEntry * | ownerRef | ||
) |
if the current login entry isn't locked by a login thread the calling login-thread obtains ownership
Definition at line 3763 of file CAAccountingInstance.cpp.
References CAMutex::lock(), AccountLoginHashEntry::loginOngoing, AccountLoginHashEntry::ownerLock, AccountLoginHashEntry::ownerRef, and CAMutex::unlock().
Referenced by CAAccountingInstance::handleChallengeResponse_internal().
bool testLoginEntryOwner | ( | struct AccountLoginHashEntry * | loginEntry, |
fmHashTableEntry * | ownerRef | ||
) |
tests whether the corresponding ownerEntry owns this loginEntry.
Definition at line 3827 of file CAAccountingInstance.cpp.
References CAMutex::lock(), AccountLoginHashEntry::ownerLock, testLoginEntryOwner_internal(), and CAMutex::unlock().
Referenced by CAAccountingInstance::cleanupTableEntry().
|
inline |
Definition at line 3848 of file CAAccountingInstance.cpp.
References AccountLoginHashEntry::ownerRef.
Referenced by resetLoginOngoing(), and testLoginEntryOwner().