
Go to the source code of this file.
Classes | |
| struct | t_MixPacketPayload |
| struct | t_MixPacket |
| struct | t_queue_entry |
| struct | t_replay_timestamp |
| the Replaytimestamp type More... | |
| struct | t_mix_parameters |
| struct | t_accountinginfo |
| Structure that holds all per-user payment information Included in CAFirstMixChannelList (struct fmHashTableEntry). More... | |
Defines | |
| #define | MIX_PAYLOAD_HTTP 0 |
| #define | MIX_PAYLOAD_SOCKS 1 |
| #define | MIXPACKET_SIZE 998 |
| #define | CHANNEL_DATA 0x00 |
| #define | CHANNEL_OPEN 0x08 |
| #define | CHANNEL_TIMESTAMPS_UP 0x60 |
| #define | CHANNEL_TIMESTAMPS_DOWN 0x90 |
| #define | CHANNEL_CLOSE 0x01 |
| #define | CHANNEL_SUSPEND 0x02 |
| #define | CHANNEL_RESUME 0x04 |
| #define | CHANNEL_DUMMY 0x10 |
| #define | CHANNEL_SIG_CRIME 0x0 |
| #define | CHANNEL_SIG_CRIME_ID_MASK 0x0 |
| #define | CHANNEL_ALLOWED_FLAGS (CHANNEL_OPEN|CHANNEL_CLOSE|CHANNEL_SUSPEND|CHANNEL_RESUME|CHANNEL_TIMESTAMPS_UP|CHANNEL_TIMESTAMPS_DOWN) |
| #define | NEW_FLOW_CONTROL_FLAG 0x8000 |
| #define | CONNECTION_ERROR_FLAG 0x01 |
| #define | DATA_SIZE 992 |
| #define | PAYLOAD_SIZE 989 |
| #define | PAYLOAD_LEN_MASK 0x03FF; |
| #define | DO_PACKED __attribute__ ((__packed__)) |
| #define | AUTH_NEW 0x0 |
| These flags are used to represent the state of the payment. | |
| #define | AUTH_GOT_ACCOUNTCERT 0x1 |
| user has sent an account certificate | |
| #define | AUTH_ACCOUNT_OK 0x2 |
| format and signature of all received certificates was OK | |
| #define | AUTH_WAITING_FOR_FIRST_SETTLED_CC 0x4 |
| First CC from client has not been settled yet. | |
| #define | AUTH_SENT_CC_REQUEST 0x20 |
| we have sent one or two CC requests | |
| #define | AUTH_DATABASE 0x40 |
| A database error occured (internal or in the BI). | |
| #define | AUTH_BLOCKED 0x80 |
| Account has been blocked temporarly. | |
| #define | AUTH_SENT_ACCOUNT_REQUEST 0x100 |
| we have sent one request for an accountcertificate | |
| #define | AUTH_HARD_LIMIT_REACHED 0x200 |
| #define | AUTH_FAKE 0x400 |
| the user tried to fake something | |
| #define | AUTH_CHALLENGE_SENT 0x800 |
| we have sent a challenge and not yet received the response | |
| #define | AUTH_ACCOUNT_EMPTY 0x1000 |
| the account is empty | |
| #define | AUTH_FATAL_ERROR 0x2000 |
| a fatal error occured earlier | |
| #define | AUTH_OUTDATED_CC 0x4000 |
| #define | AUTH_INVALID_ACCOUNT 0x8000 |
| Account does not exist. | |
| #define | AUTH_TIMEOUT_STARTED 0x10000 |
| #define | AUTH_MULTIPLE_LOGIN 0x20000 |
| #define | AUTH_UNKNOWN 0x40000 |
| #define | AUTH_SETTLED_ONCE 0x80000 |
| #define | AUTH_DELETE_ENTRY 0x80000 |
| #define | AUTH_LOGIN_NOT_FINISHED 0x100000 |
| #define | AUTH_LOGIN_FAILED 0x200000 |
| #define | AUTH_LOGIN_SKIP_SETTLEMENT 0x400000 |
Typedefs | |
| typedef UINT32 | HCHANNEL |
| typedef t_MixPacket | MIXPACKET |
| typedef struct t_queue_entry | tQueueEntry |
| typedef tQueueEntry | tPoolEntry |
| typedef struct t_replay_timestamp | tReplayTimestamp |
| typedef struct t_mix_parameters | tMixParameters |
| typedef struct t_accountinginfo | tAiAccountingInfo |
Enumerations | |
| enum | NetworkType { UNKNOWN_NETWORKTYPE, RAW_TCP, RAW_UNIX, SSL_TCP, SSL_UNIX, HTTP_TCP } |
Variables | |
| struct t_MixPacketPayload | __packed__ |
| #define AUTH_ACCOUNT_EMPTY 0x1000 |
the account is empty
Definition at line 242 of file typedefs.hpp.
Referenced by CAAccountingInstance::__commitSettlementToDatabase(), CAAccountingInstance::__handleSettleResult(), CAAccountingInstance::cleanupTableEntry(), CAAccountingInstance::finishLoginProcess(), CAAccountingInstance::handleChallengeResponse_internal(), CAAccountingInstance::handleCostConfirmation_internal(), CAAccountingInstance::handleJapPacket_internal(), CAAccountingInstance::processJapMessage(), CAAccountingInstance::sendCCRequest(), and CAAccountingInstance::settlementTransaction().
| #define AUTH_ACCOUNT_OK 0x2 |
format and signature of all received certificates was OK
Definition at line 216 of file typedefs.hpp.
Referenced by CAAccountingInstance::cleanupTableEntry(), CAAccountingInstance::handleChallengeResponse_internal(), and CAAccountingInstance::handleCostConfirmation_internal().
| #define AUTH_BLOCKED 0x80 |
Account has been blocked temporarly.
Definition at line 228 of file typedefs.hpp.
Referenced by CAAccountingInstance::__commitSettlementToDatabase(), CAAccountingInstance::__handleSettleResult(), CAAccountingInstance::finishLoginProcess(), CAAccountingInstance::handleChallengeResponse_internal(), CAAccountingInstance::handleJapPacket_internal(), CAAccountingInstance::processJapMessage(), and CAAccountingInstance::settlementTransaction().
| #define AUTH_CHALLENGE_SENT 0x800 |
we have sent a challenge and not yet received the response
Definition at line 239 of file typedefs.hpp.
Referenced by CAAccountingInstance::handleAccountCertificate_internal(), and CAAccountingInstance::handleChallengeResponse_internal().
| #define AUTH_DATABASE 0x40 |
A database error occured (internal or in the BI).
Definition at line 225 of file typedefs.hpp.
Referenced by CAAccountingInstance::handleCostConfirmation_internal(), and CAAccountingInstance::handleJapPacket_internal().
| #define AUTH_DELETE_ENTRY 0x80000 |
Definition at line 266 of file typedefs.hpp.
Referenced by CAAccountingInstance::cleanupTableEntry(), CAAccountingInstance::handleAccountCertificate_internal(), CAAccountingInstance::handleChallengeResponse_internal(), CAAccountingInstance::handleCostConfirmation_internal(), CAAccountingInstance::handleJapPacket_internal(), and CAAccountingInstance::processThread().
| #define AUTH_FAKE 0x400 |
the user tried to fake something
Definition at line 236 of file typedefs.hpp.
Referenced by CAAccountingInstance::handleAccountCertificate_internal(), CAAccountingInstance::handleChallengeResponse_internal(), CAAccountingInstance::handleCostConfirmation_internal(), and CAAccountingInstance::processJapMessageLoginHelper().
| #define AUTH_FATAL_ERROR 0x2000 |
a fatal error occured earlier
Definition at line 245 of file typedefs.hpp.
Referenced by CAAccountingInstance::handleJapPacket_internal(), and CAAccountingInstance::returnPrepareKickout().
| #define AUTH_GOT_ACCOUNTCERT 0x1 |
user has sent an account certificate
Definition at line 213 of file typedefs.hpp.
Referenced by CAAccountingInstance::handleAccountCertificate_internal(), CAAccountingInstance::handleChallengeResponse_internal(), and CAAccountingInstance::handleCostConfirmation_internal().
| #define AUTH_HARD_LIMIT_REACHED 0x200 |
Definition at line 233 of file typedefs.hpp.
Referenced by CAAccountingInstance::handleCostConfirmation_internal(), CAAccountingInstance::handleJapPacket_internal(), and CAAccountingInstance::initTableEntry().
| #define AUTH_INVALID_ACCOUNT 0x8000 |
Account does not exist.
Definition at line 250 of file typedefs.hpp.
Referenced by CAAccountingInstance::__commitSettlementToDatabase(), CAAccountingInstance::__handleSettleResult(), CAAccountingInstance::finishLoginProcess(), CAAccountingInstance::handleChallengeResponse_internal(), CAAccountingInstance::handleJapPacket_internal(), CAAccountingInstance::processJapMessage(), and CAAccountingInstance::settlementTransaction().
| #define AUTH_LOGIN_FAILED 0x200000 |
Definition at line 269 of file typedefs.hpp.
Referenced by CAFirstMix::doUserLogin_internal(), CAAccountingInstance::finishLoginProcess(), CAAccountingInstance::loginProcessStatus(), and CAAccountingInstance::processJapMessageLoginHelper().
| #define AUTH_LOGIN_NOT_FINISHED 0x100000 |
Definition at line 268 of file typedefs.hpp.
Referenced by CAFirstMix::doUserLogin_internal(), CAAccountingInstance::finishLoginProcess(), CAAccountingInstance::handleCostConfirmation_internal(), CAAccountingInstance::handleJapPacket_internal(), CAAccountingInstance::initTableEntry(), CAAccountingInstance::loginProcessStatus(), and CAAccountingInstance::processJapMessageLoginHelper().
| #define AUTH_LOGIN_SKIP_SETTLEMENT 0x400000 |
| #define AUTH_MULTIPLE_LOGIN 0x20000 |
Definition at line 255 of file typedefs.hpp.
Referenced by CAAccountingInstance::handleChallengeResponse_internal(), CAAccountingInstance::handleJapPacket_internal(), CAAccountingInstance::loginProcessStatus(), and CAAccountingInstance::processJapMessageLoginHelper().
| #define AUTH_NEW 0x0 |
These flags are used to represent the state of the payment.
new user, not yet authenticated
Definition at line 210 of file typedefs.hpp.
| #define AUTH_OUTDATED_CC 0x4000 |
Definition at line 247 of file typedefs.hpp.
Referenced by CAAccountingInstance::__handleSettleResult(), CAAccountingInstance::handleJapPacket_internal(), and CAAccountingInstance::settlementTransaction().
| #define AUTH_SENT_ACCOUNT_REQUEST 0x100 |
we have sent one request for an accountcertificate
Definition at line 231 of file typedefs.hpp.
Referenced by CAAccountingInstance::initTableEntry().
| #define AUTH_SENT_CC_REQUEST 0x20 |
we have sent one or two CC requests
Definition at line 222 of file typedefs.hpp.
Referenced by CAAccountingInstance::handleCostConfirmation_internal(), CAAccountingInstance::handleJapPacket_internal(), CAAccountingInstance::initTableEntry(), and CAAccountingInstance::sendCCRequest().
| #define AUTH_SETTLED_ONCE 0x80000 |
Definition at line 260 of file typedefs.hpp.
Referenced by CAAccountingInstance::__handleSettleResult(), CAAccountingInstance::finishLoginProcess(), and CAAccountingInstance::settlementTransaction().
| #define AUTH_TIMEOUT_STARTED 0x10000 |
Definition at line 253 of file typedefs.hpp.
Referenced by CAAccountingInstance::handleAccountCertificate_internal(), CAAccountingInstance::handleJapPacket_internal(), and CAAccountingInstance::initTableEntry().
| #define AUTH_UNKNOWN 0x40000 |
Definition at line 257 of file typedefs.hpp.
Referenced by CAAccountingInstance::__commitSettlementToDatabase(), CAAccountingInstance::__handleSettleResult(), CAAccountingInstance::finishLoginProcess(), CAAccountingInstance::handleJapPacket_internal(), and CAAccountingInstance::settlementTransaction().
| #define AUTH_WAITING_FOR_FIRST_SETTLED_CC 0x4 |
First CC from client has not been settled yet.
Definition at line 219 of file typedefs.hpp.
Referenced by CAAccountingInstance::__handleSettleResult(), CAFirstMix::doUserLogin_internal(), CAAccountingInstance::handleChallengeResponse_internal(), CAAccountingInstance::handleCostConfirmation_internal(), CAAccountingInstance::handleJapPacket_internal(), CAAccountingInstance::initTableEntry(), and CAAccountingInstance::settlementTransaction().
| #define CHANNEL_ALLOWED_FLAGS (CHANNEL_OPEN|CHANNEL_CLOSE|CHANNEL_SUSPEND|CHANNEL_RESUME|CHANNEL_TIMESTAMPS_UP|CHANNEL_TIMESTAMPS_DOWN) |
Definition at line 59 of file typedefs.hpp.
Referenced by mm_loopReadFromMixAfter(), and mm_loopReadFromMixBefore().
| #define CHANNEL_CLOSE 0x01 |
Definition at line 44 of file typedefs.hpp.
Referenced by CAFirstMixA::closeConnection(), CAFirstMixA::finishPacket(), CALocalProxy::loop(), CALastMixB::loop(), CALastMixA::loop(), CAFirstMixB::loop(), CAFirstMixA::loop(), mm_loopReadFromMixAfter(), mm_loopReadFromMixBefore(), and CAChain::processDownstream().
| #define CHANNEL_DATA 0x00 |
Definition at line 39 of file typedefs.hpp.
Referenced by lm_loopSendToMix(), CALocalProxy::loop(), CALastMixB::loop(), CALastMixA::loop(), CAFirstMixB::loop(), CAFirstMixA::loop(), CAChain::processDownstream(), and CAFirstMixA::sendToUsers().
| #define CHANNEL_DUMMY 0x10 |
Definition at line 47 of file typedefs.hpp.
Referenced by CAPool::CAPool(), fm_loopReadFromMix(), fm_loopSendToMix(), lm_loopReadFromMix(), lm_loopSendToMix(), CALastMixB::loop(), CAFirstMixB::loop(), CAFirstMixA::loop(), mm_loopReadFromMixAfter(), mm_loopReadFromMixBefore(), mm_loopSendToMixAfter(), and mm_loopSendToMixBefore().
| #define CHANNEL_OPEN 0x08 |
Definition at line 40 of file typedefs.hpp.
Referenced by fm_loopSendToMix(), CALocalProxy::loop(), CALastMixB::loop(), CALastMixA::loop(), CAFirstMixB::loop(), CAFirstMixA::loop(), and mm_loopReadFromMixBefore().
| #define CHANNEL_RESUME 0x04 |
Definition at line 46 of file typedefs.hpp.
Referenced by CALastMixA::loop(), and CAFirstMixA::resumeAllUserChannels().
| #define CHANNEL_SIG_CRIME 0x0 |
Definition at line 54 of file typedefs.hpp.
Referenced by CALastMixA::loop(), CAFirstMixB::loop(), CAFirstMixA::loop(), and mm_loopReadFromMixAfter().
| #define CHANNEL_SIG_CRIME_ID_MASK 0x0 |
Definition at line 55 of file typedefs.hpp.
| #define CHANNEL_SUSPEND 0x02 |
Definition at line 45 of file typedefs.hpp.
Referenced by CALastMixA::loop(), and CAFirstMixA::loop().
| #define CHANNEL_TIMESTAMPS_DOWN 0x90 |
Definition at line 43 of file typedefs.hpp.
| #define CHANNEL_TIMESTAMPS_UP 0x60 |
Definition at line 42 of file typedefs.hpp.
| #define CONNECTION_ERROR_FLAG 0x01 |
| #define DATA_SIZE 992 |
Definition at line 67 of file typedefs.hpp.
Referenced by CAChain::CAChain(), CAPool::CAPool(), CAFirstMixA::closeConnection(), fm_loopReadFromMix(), fm_loopSendToMix(), lm_loopReadFromMix(), lm_loopSendToMix(), CALocalProxy::loop(), CALastMixB::loop(), CALastMixA::loop(), CAFirstMixB::loop(), CAFirstMixA::loop(), mm_loopReadFromMixAfter(), mm_loopReadFromMixBefore(), mm_loopSendToMixAfter(), mm_loopSendToMixBefore(), CAFirstMixA::notifyAllUserChannels(), CAChain::processDownstream(), and CAControlChannelDispatcher::sendMessages().
| #define DO_PACKED __attribute__ ((__packed__)) |
Definition at line 74 of file typedefs.hpp.
| #define MIX_PAYLOAD_HTTP 0 |
| #define MIX_PAYLOAD_SOCKS 1 |
Definition at line 34 of file typedefs.hpp.
Referenced by CALocalProxy::loop(), CALastMixB::loop(), and CALastMixA::loop().
| #define MIXPACKET_SIZE 998 |
Definition at line 37 of file typedefs.hpp.
Referenced by CAMuxSocket::CAMuxSocket(), CAFirstMix::doUserLogin_internal(), fm_loopReadFromMix(), fm_loopSendToMix(), CAAccountingInstance::handleJapPacket_internal(), CAMiddleMix::init(), CALocalProxy::init(), CALastMix::init(), CAFirstMix::init(), lm_loopReadFromMix(), lm_loopSendToMix(), CALocalProxy::loop(), CALastMixB::loop(), CALastMixA::loop(), CAFirstMixB::loop(), CAFirstMixA::loop(), main(), mm_loopSendToMixAfter(), mm_loopSendToMixBefore(), CAFirstMixA::notifyAllUserChannels(), CAMuxSocket::prepareForSend(), CALocalProxy::processKeyExchange(), CAMuxSocket::receive(), CAMuxSocket::send(), and CAFirstMixA::sendToUsers().
| #define NEW_FLOW_CONTROL_FLAG 0x8000 |
Definition at line 63 of file typedefs.hpp.
Referenced by CALocalProxy::loop(), and CALastMixA::loop().
| #define PAYLOAD_LEN_MASK 0x03FF; |
Definition at line 69 of file typedefs.hpp.
Referenced by CALocalProxy::loop(), and CALastMixA::loop().
| #define PAYLOAD_SIZE 989 |
Definition at line 68 of file typedefs.hpp.
Referenced by CALocalProxy::loop(), and CALastMixA::loop().
Definition at line 32 of file typedefs.hpp.
| typedef t_MixPacket MIXPACKET |
Definition at line 117 of file typedefs.hpp.
| typedef struct t_accountinginfo tAiAccountingInfo |
Definition at line 333 of file typedefs.hpp.
| typedef struct t_mix_parameters tMixParameters |
Definition at line 201 of file typedefs.hpp.
| typedef tQueueEntry tPoolEntry |
Definition at line 182 of file typedefs.hpp.
| typedef struct t_queue_entry tQueueEntry |
Definition at line 178 of file typedefs.hpp.
| typedef struct t_replay_timestamp tReplayTimestamp |
Definition at line 191 of file typedefs.hpp.
| enum NetworkType |
1.5.6