JayBeams  0.1
Another project to have fun coding.
Variables
jb::itch5::mold_udp_protocol Namespace Reference

MoldUDP64 protocol constants. More...

Variables

constexpr std::size_t session_id_size = 10
 The size of the session_id field, this is the first field of the header, at offset 0. More...
 
constexpr std::size_t sequence_number_offset = session_id_size
 The location of the sequence number field within the header. More...
 
constexpr std::size_t block_count_offset = sequence_number_offset + 8
 The location of the block count field within the header. More...
 
constexpr std::size_t header_size = block_count_offset + 2
 The total size of the MoldUDP64 header. More...
 

Detailed Description

MoldUDP64 protocol constants.

Variable Documentation

◆ block_count_offset

constexpr std::size_t jb::itch5::mold_udp_protocol::block_count_offset = sequence_number_offset + 8

The location of the block count field within the header.

Definition at line 25 of file mold_udp_protocol_constants.hpp.

Referenced by jb::itch5::mold_udp_pacer< clock_type >::fillup_header_fields(), and jb::itch5::mold_udp_channel::handle_received().

◆ header_size

constexpr std::size_t jb::itch5::mold_udp_protocol::header_size = block_count_offset + 2

◆ sequence_number_offset

constexpr std::size_t jb::itch5::mold_udp_protocol::sequence_number_offset = session_id_size

The location of the sequence number field within the header.

Definition at line 20 of file mold_udp_protocol_constants.hpp.

Referenced by jb::itch5::mold_udp_pacer< clock_type >::fillup_header_fields(), and jb::itch5::mold_udp_channel::handle_received().

◆ session_id_size

constexpr std::size_t jb::itch5::mold_udp_protocol::session_id_size = 10

The size of the session_id field, this is the first field of the header, at offset 0.

Definition at line 15 of file mold_udp_protocol_constants.hpp.