Mixe for Privacy and Anonymity in the Internet
Classes | Defines | Typedefs | Functions | Variables
typedefsb.hpp File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  t_first_upstream_chain_cell
struct  t_sequel_upstream_chain_cell
struct  t_upstream_chain_cell
struct  t_first_downstream_chain_cell
struct  t_sequel_downstream_chain_cell
struct  t_downstream_chain_cell

Defines

#define CHANNEL_DOWNSTREAM_PACKETS   10
#define CHANNEL_TIMEOUT   15
#define CHAIN_TIMEOUT   30
#define DEADLINE_TIMEOUT   5
#define CHAIN_ID_LENGTH   8
#define CHAINFLAG_STREAM_CLOSED   0x4000
#define CHAINFLAG_NEW_CHAIN   0x2000
#define CHAINFLAG_FAST_RESPONSE   0x8000
#define CHAINFLAG_CONNECTION_ERROR   0x8000
#define CHAINFLAG_UNKNOWN_CHAIN   0x2000
#define CHAINFLAG_LENGTH_MASK   0x03FF
#define MAX_FIRST_UPSTREAM_CHAINCELL_PAYLOAD   DATA_SIZE - 2 - 1
#define MAX_SEQUEL_UPSTREAM_CHAINCELL_PAYLOAD   DATA_SIZE - 2 - CHAIN_ID_LENGTH
#define MAX_FIRST_DOWNSTREAM_CHAINCELL_PAYLOAD   DATA_SIZE - 2 - CHAIN_ID_LENGTH
#define MAX_SEQUEL_DOWNSTREAM_CHAINCELL_PAYLOAD   DATA_SIZE - 2

Typedefs

typedef t_upstream_chain_cell t_upstreamChainCell
typedef t_downstream_chain_cell t_downstreamChainCell

Functions

struct t_first_upstream_chain_cell __attribute__ ((__packed__))

Variables

UINT8 type
UINT8 data [MAX_FIRST_UPSTREAM_CHAINCELL_PAYLOAD]
UINT8 chainId [CHAIN_ID_LENGTH]
UINT16 lengthAndFlags
union {
   t_first_upstream_chain_cell   firstCell
   t_sequel_upstream_chain_cell   sequelCell
}; 
union {
   t_first_downstream_chain_cell   firstCell
   t_sequel_downstream_chain_cell   sequelCell
}; 

Define Documentation

#define CHAIN_ID_LENGTH   8
#define CHAIN_TIMEOUT   30

Definition at line 37 of file typedefsb.hpp.

Referenced by CAChain::processDownstream(), and CALastMix::processKeyExchange().

#define CHAINFLAG_CONNECTION_ERROR   0x8000

Definition at line 66 of file typedefsb.hpp.

Referenced by CAChain::processDownstream().

#define CHAINFLAG_FAST_RESPONSE   0x8000

Definition at line 63 of file typedefsb.hpp.

Referenced by CALastMixB::loop().

#define CHAINFLAG_LENGTH_MASK   0x03FF

Definition at line 69 of file typedefsb.hpp.

Referenced by CALastMixB::loop().

#define CHAINFLAG_NEW_CHAIN   0x2000

Definition at line 62 of file typedefsb.hpp.

Referenced by CALastMixB::loop().

#define CHAINFLAG_STREAM_CLOSED   0x4000

Definition at line 59 of file typedefsb.hpp.

Referenced by CALastMixB::loop(), and CAChain::processDownstream().

#define CHAINFLAG_UNKNOWN_CHAIN   0x2000

Definition at line 67 of file typedefsb.hpp.

Referenced by CAChain::processDownstream().

#define CHANNEL_DOWNSTREAM_PACKETS   10

Definition at line 35 of file typedefsb.hpp.

Referenced by CAChain::addChannel(), and CALastMix::processKeyExchange().

#define CHANNEL_TIMEOUT   15

Definition at line 36 of file typedefsb.hpp.

Referenced by CAChain::addChannel(), and CALastMix::processKeyExchange().

#define DEADLINE_TIMEOUT   5

Definition at line 38 of file typedefsb.hpp.

Referenced by CAChain::processDownstream().

Definition at line 119 of file typedefsb.hpp.

Referenced by CAChain::processDownstream().

Definition at line 71 of file typedefsb.hpp.

Referenced by CALastMixB::loop().

Definition at line 120 of file typedefsb.hpp.

Referenced by CAChain::processDownstream().

Definition at line 72 of file typedefsb.hpp.

Referenced by CALastMixB::loop().


Typedef Documentation

Definition at line 163 of file typedefsb.hpp.

Definition at line 117 of file typedefsb.hpp.


Function Documentation

struct t_first_upstream_chain_cell __attribute__ ( (__packed__)  )

Variable Documentation

union { ... }
union { ... }

Definition at line 103 of file typedefsb.hpp.

Definition at line 117 of file typedefsb.hpp.

Definition at line 115 of file typedefsb.hpp.

Referenced by CALastMixB::loop().

Definition at line 118 of file typedefsb.hpp.

Definition at line 102 of file typedefsb.hpp.