Mixe for Privacy and Anonymity in the Internet
Classes | Macros | 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
 

Macros

#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
 
}; 
 

Macro Definition Documentation

◆ CHAIN_ID_LENGTH

#define CHAIN_ID_LENGTH   8

Definition at line 40 of file typedefsb.hpp.

◆ CHAIN_TIMEOUT

#define CHAIN_TIMEOUT   30

Definition at line 37 of file typedefsb.hpp.

◆ CHAINFLAG_CONNECTION_ERROR

#define CHAINFLAG_CONNECTION_ERROR   0x8000

Definition at line 66 of file typedefsb.hpp.

◆ CHAINFLAG_FAST_RESPONSE

#define CHAINFLAG_FAST_RESPONSE   0x8000

Definition at line 63 of file typedefsb.hpp.

◆ CHAINFLAG_LENGTH_MASK

#define CHAINFLAG_LENGTH_MASK   0x03FF

Definition at line 69 of file typedefsb.hpp.

◆ CHAINFLAG_NEW_CHAIN

#define CHAINFLAG_NEW_CHAIN   0x2000

Definition at line 62 of file typedefsb.hpp.

◆ CHAINFLAG_STREAM_CLOSED

#define CHAINFLAG_STREAM_CLOSED   0x4000

Definition at line 59 of file typedefsb.hpp.

◆ CHAINFLAG_UNKNOWN_CHAIN

#define CHAINFLAG_UNKNOWN_CHAIN   0x2000

Definition at line 67 of file typedefsb.hpp.

◆ CHANNEL_DOWNSTREAM_PACKETS

#define CHANNEL_DOWNSTREAM_PACKETS   10

Definition at line 35 of file typedefsb.hpp.

◆ CHANNEL_TIMEOUT

#define CHANNEL_TIMEOUT   15

Definition at line 36 of file typedefsb.hpp.

◆ DEADLINE_TIMEOUT

#define DEADLINE_TIMEOUT   5

Definition at line 38 of file typedefsb.hpp.

◆ MAX_FIRST_DOWNSTREAM_CHAINCELL_PAYLOAD

#define MAX_FIRST_DOWNSTREAM_CHAINCELL_PAYLOAD   DATA_SIZE - 2 - CHAIN_ID_LENGTH

Definition at line 119 of file typedefsb.hpp.

◆ MAX_FIRST_UPSTREAM_CHAINCELL_PAYLOAD

#define MAX_FIRST_UPSTREAM_CHAINCELL_PAYLOAD   DATA_SIZE - 2 - 1

Definition at line 71 of file typedefsb.hpp.

◆ MAX_SEQUEL_DOWNSTREAM_CHAINCELL_PAYLOAD

#define MAX_SEQUEL_DOWNSTREAM_CHAINCELL_PAYLOAD   DATA_SIZE - 2

Definition at line 120 of file typedefsb.hpp.

◆ MAX_SEQUEL_UPSTREAM_CHAINCELL_PAYLOAD

#define MAX_SEQUEL_UPSTREAM_CHAINCELL_PAYLOAD   DATA_SIZE - 2 - CHAIN_ID_LENGTH

Definition at line 72 of file typedefsb.hpp.

Typedef Documentation

◆ t_downstreamChainCell

Definition at line 163 of file typedefsb.hpp.

◆ t_upstreamChainCell

Definition at line 117 of file typedefsb.hpp.

Function Documentation

◆ __attribute__()

struct t_first_upstream_chain_cell __attribute__ ( (__packed__)  )

Variable Documentation

◆ 

union { ... }

◆ 

union { ... }

◆ chainId

UINT8 chainId

◆ data

Definition at line 1 of file typedefsb.hpp.

◆ firstCell

Definition at line 2 of file typedefsb.hpp.

◆ lengthAndFlags

UINT16 lengthAndFlags

Definition at line 0 of file typedefsb.hpp.

Referenced by CALastMixB::loop().

◆ sequelCell

Definition at line 3 of file typedefsb.hpp.

◆ type

UINT8 type

Definition at line 0 of file typedefsb.hpp.