SatCat5
tcp_core.h File Reference

Detailed Description

Type definitions for manipulating TCP segments.

SatCat5 does not yet support TCP/IP, but sometimes needs to manipulate TCP headers (e.g., router::BasicNat). This file defines a minimal skeleton for simple operations. It may be expanded in future versions.

Definition in file tcp_core.h.

#include <satcat5/ip_core.h>
Include dependency graph for tcp_core.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  satcat5::tcp::Header
 TCP header contents. More...
 

Typedefs

typedef satcat5::ip::Addr satcat5::tcp::Addr
 
typedef satcat5::ip::Port satcat5::tcp::Port
 

Variables

constexpr unsigned satcat5::tcp::HDR_MIN_WORDS = 5
 Minimum and maximum TCP header length parameters.
 
constexpr unsigned satcat5::tcp::HDR_MIN_SHORTS = 2 * HDR_MIN_WORDS
 Minimum and maximum TCP header length parameters.
 
constexpr unsigned satcat5::tcp::HDR_MIN_BYTES = 4 * HDR_MIN_WORDS
 Minimum and maximum TCP header length parameters.
 
constexpr unsigned satcat5::tcp::HDR_MAX_WORDS = 15
 Minimum and maximum TCP header length parameters.
 
constexpr unsigned satcat5::tcp::HDR_MAX_SHORTS = 2 * HDR_MAX_WORDS
 Minimum and maximum TCP header length parameters.
 
constexpr unsigned satcat5::tcp::HDR_MAX_BYTES = 4 * HDR_MAX_WORDS
 Minimum and maximum TCP header length parameters.