QUIC Protocol Implementation 1.0
A Python implementation of the QUIC (Quick UDP Internet Connections) protocol.
Loading...
Searching...
No Matches
constants.Constants Class Reference
Collaboration diagram for constants.Constants:

Static Public Attributes

int ZERO = 0
 
int ONE = 1
 
int TWO = 2
 
int THREE = 3
 
int FOUR = 4
 
int FIVE = 5
 
int SIX = 6
 
int SEVEN = 7
 
int EIGHT = 8
 
int START = ZERO
 
int KILO = 1024
 
int OFFSET_LENGTH = EIGHT
 
int LEN_LENGTH = EIGHT
 
int FRAME_TYPE_FIELD_LENGTH = ONE
 
int MIN_TYPE_FIELD = 0x08
 
int OFF_BIT = 0x04
 
int LEN_BIT = 0x02
 
int FIN_BIT = 0x01
 
int HEADER_LENGTH = ONE
 
int PACKET_NUMBER_LENGTH = FOUR
 
int DEST_CONNECTION_ID_LENGTH = EIGHT
 
int FORM_SHIFT = SEVEN
 
int FIXED_SHIFT = SIX
 
int SPIN_SHIFT = FIVE
 
int RES_SHIFT = THREE
 
int KEY_SHIFT = TWO
 
int FORM_MASK = 0b10000000
 
int FIXED_MASK = 0b01000000
 
int SPIN_MASK = 0b00100000
 
int RES_MASK = 0b00011000
 
int KEY_MASK = 0b00000100
 
int PACKET_NUMBER_LENGTH_MASK = 0b00000011
 
int STREAM_ID_LENGTH = EIGHT
 
int INIT_BY_MASK = 0x01
 
int DIRECTION_MASK = 0x02
 
int DATA_RECVD = 3
 
int READY = START
 
int SEND = ONE
 
int DATA_SENT = TWO
 
int RECV = START
 
int SIZE_KNOWN = ONE
 
int DATA_READ = TWO
 
int MIN_PACKET_SIZE = 1000
 
int MAX_PACKET_SIZE = 2000
 
int PACKET_SIZE_BYTES = TWO
 
int FRAMES_IN_PACKET = FIVE
 
int BASE_TWO = TWO
 
int TIMEOUT = 100
 
int BIDI = ZERO
 
int UNIDI = ONE
 
int CONNECTION_ID_SENDER = ZERO
 
int CONNECTION_ID_RECEIVER = ONE
 
str LOOP_BACK_ADDR = '127.0.0.1'
 
int PORT_RECEIVER = 3492
 
int PORT_SENDER = 33336
 
tuple ADDR_RECEIVER = (LOOP_BACK_ADDR, PORT_RECEIVER)
 
tuple ADDR_SENDER = (LOOP_BACK_ADDR, PORT_SENDER)
 
int MAX_STREAMS = 5
 
str FILE_PATH = 'img.gif'
 
int FILE_SIZE = 477
 

Detailed Description

@brief Constants used throughout the QUIC protocol implementation.

@details Constants are grouped by category for better organization.

Definition at line 9 of file constants.py.

Member Data Documentation

◆ ADDR_RECEIVER

tuple constants.Constants.ADDR_RECEIVER = (LOOP_BACK_ADDR, PORT_RECEIVER)
static

Definition at line 104 of file constants.py.

◆ ADDR_SENDER

tuple constants.Constants.ADDR_SENDER = (LOOP_BACK_ADDR, PORT_SENDER)
static

Definition at line 105 of file constants.py.

◆ BASE_TWO

int constants.Constants.BASE_TWO = TWO
static

Definition at line 91 of file constants.py.

◆ BIDI

int constants.Constants.BIDI = ZERO
static

Definition at line 93 of file constants.py.

◆ CONNECTION_ID_RECEIVER

int constants.Constants.CONNECTION_ID_RECEIVER = ONE
static

Definition at line 100 of file constants.py.

◆ CONNECTION_ID_SENDER

int constants.Constants.CONNECTION_ID_SENDER = ZERO
static

Definition at line 99 of file constants.py.

◆ DATA_READ

int constants.Constants.DATA_READ = TWO
static

Definition at line 82 of file constants.py.

◆ DATA_RECVD

int constants.Constants.DATA_RECVD = 3
static

Definition at line 72 of file constants.py.

◆ DATA_SENT

int constants.Constants.DATA_SENT = TWO
static

Definition at line 77 of file constants.py.

◆ DEST_CONNECTION_ID_LENGTH

int constants.Constants.DEST_CONNECTION_ID_LENGTH = EIGHT
static

Definition at line 47 of file constants.py.

◆ DIRECTION_MASK

int constants.Constants.DIRECTION_MASK = 0x02
static

Definition at line 69 of file constants.py.

◆ EIGHT

int constants.Constants.EIGHT = 8
static

Definition at line 27 of file constants.py.

◆ FILE_PATH

str constants.Constants.FILE_PATH = 'img.gif'
static

Definition at line 107 of file constants.py.

◆ FILE_SIZE

int constants.Constants.FILE_SIZE = 477
static

Definition at line 108 of file constants.py.

◆ FIN_BIT

int constants.Constants.FIN_BIT = 0x01
static

Definition at line 40 of file constants.py.

◆ FIVE

int constants.Constants.FIVE = 5
static

Definition at line 24 of file constants.py.

◆ FIXED_MASK

int constants.Constants.FIXED_MASK = 0b01000000
static

Definition at line 58 of file constants.py.

◆ FIXED_SHIFT

int constants.Constants.FIXED_SHIFT = SIX
static

Definition at line 51 of file constants.py.

◆ FORM_MASK

int constants.Constants.FORM_MASK = 0b10000000
static

Definition at line 57 of file constants.py.

◆ FORM_SHIFT

int constants.Constants.FORM_SHIFT = SEVEN
static

Definition at line 50 of file constants.py.

◆ FOUR

int constants.Constants.FOUR = 4
static

Definition at line 23 of file constants.py.

◆ FRAME_TYPE_FIELD_LENGTH

int constants.Constants.FRAME_TYPE_FIELD_LENGTH = ONE
static

Definition at line 36 of file constants.py.

◆ FRAMES_IN_PACKET

int constants.Constants.FRAMES_IN_PACKET = FIVE
static

Definition at line 90 of file constants.py.

◆ HEADER_LENGTH

int constants.Constants.HEADER_LENGTH = ONE
static

Definition at line 45 of file constants.py.

◆ INIT_BY_MASK

int constants.Constants.INIT_BY_MASK = 0x01
static

Definition at line 68 of file constants.py.

◆ KEY_MASK

int constants.Constants.KEY_MASK = 0b00000100
static

Definition at line 61 of file constants.py.

◆ KEY_SHIFT

int constants.Constants.KEY_SHIFT = TWO
static

Definition at line 54 of file constants.py.

◆ KILO

int constants.Constants.KILO = 1024
static

Definition at line 29 of file constants.py.

◆ LEN_BIT

int constants.Constants.LEN_BIT = 0x02
static

Definition at line 39 of file constants.py.

◆ LEN_LENGTH

int constants.Constants.LEN_LENGTH = EIGHT
static

Definition at line 35 of file constants.py.

◆ LOOP_BACK_ADDR

str constants.Constants.LOOP_BACK_ADDR = '127.0.0.1'
static

Definition at line 101 of file constants.py.

◆ MAX_PACKET_SIZE

int constants.Constants.MAX_PACKET_SIZE = 2000
static

Definition at line 88 of file constants.py.

◆ MAX_STREAMS

int constants.Constants.MAX_STREAMS = 5
static

Definition at line 106 of file constants.py.

◆ MIN_PACKET_SIZE

int constants.Constants.MIN_PACKET_SIZE = 1000
static

Definition at line 87 of file constants.py.

◆ MIN_TYPE_FIELD

int constants.Constants.MIN_TYPE_FIELD = 0x08
static

Definition at line 37 of file constants.py.

◆ OFF_BIT

int constants.Constants.OFF_BIT = 0x04
static

Definition at line 38 of file constants.py.

◆ OFFSET_LENGTH

int constants.Constants.OFFSET_LENGTH = EIGHT
static

Definition at line 34 of file constants.py.

◆ ONE

int constants.Constants.ONE = 1
static

Definition at line 20 of file constants.py.

◆ PACKET_NUMBER_LENGTH

int constants.Constants.PACKET_NUMBER_LENGTH = FOUR
static

Definition at line 46 of file constants.py.

◆ PACKET_NUMBER_LENGTH_MASK

int constants.Constants.PACKET_NUMBER_LENGTH_MASK = 0b00000011
static

Definition at line 62 of file constants.py.

◆ PACKET_SIZE_BYTES

int constants.Constants.PACKET_SIZE_BYTES = TWO
static

Definition at line 89 of file constants.py.

◆ PORT_RECEIVER

int constants.Constants.PORT_RECEIVER = 3492
static

Definition at line 102 of file constants.py.

◆ PORT_SENDER

int constants.Constants.PORT_SENDER = 33336
static

Definition at line 103 of file constants.py.

◆ READY

int constants.Constants.READY = START
static

Definition at line 75 of file constants.py.

◆ RECV

int constants.Constants.RECV = START
static

Definition at line 80 of file constants.py.

◆ RES_MASK

int constants.Constants.RES_MASK = 0b00011000
static

Definition at line 60 of file constants.py.

◆ RES_SHIFT

int constants.Constants.RES_SHIFT = THREE
static

Definition at line 53 of file constants.py.

◆ SEND

int constants.Constants.SEND = ONE
static

Definition at line 76 of file constants.py.

◆ SEVEN

int constants.Constants.SEVEN = 7
static

Definition at line 26 of file constants.py.

◆ SIX

int constants.Constants.SIX = 6
static

Definition at line 25 of file constants.py.

◆ SIZE_KNOWN

int constants.Constants.SIZE_KNOWN = ONE
static

Definition at line 81 of file constants.py.

◆ SPIN_MASK

int constants.Constants.SPIN_MASK = 0b00100000
static

Definition at line 59 of file constants.py.

◆ SPIN_SHIFT

int constants.Constants.SPIN_SHIFT = FIVE
static

Definition at line 52 of file constants.py.

◆ START

int constants.Constants.START = ZERO
static

Definition at line 28 of file constants.py.

◆ STREAM_ID_LENGTH

int constants.Constants.STREAM_ID_LENGTH = EIGHT
static

Definition at line 67 of file constants.py.

◆ THREE

int constants.Constants.THREE = 3
static

Definition at line 22 of file constants.py.

◆ TIMEOUT

int constants.Constants.TIMEOUT = 100
static

Definition at line 92 of file constants.py.

◆ TWO

int constants.Constants.TWO = 2
static

Definition at line 21 of file constants.py.

◆ UNIDI

int constants.Constants.UNIDI = ONE
static

Definition at line 94 of file constants.py.

◆ ZERO

int constants.Constants.ZERO = 0
static

Definition at line 19 of file constants.py.


The documentation for this class was generated from the following file: