Seastar
High performance C++ framework for concurrent servers
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
seastar::net::tcp_option Struct Reference

Classes

struct  eol
 
struct  mss
 
struct  nop
 
struct  sack
 
struct  timestamps
 
struct  win_scale
 

Public Types

enum class  option_kind : uint8_t {
  mss = 2 , win_scale = 3 , sack = 4 , timestamps = 8 ,
  nop = 1 , eol = 0
}
 
enum class  option_len : uint8_t {
  mss = 4 , win_scale = 3 , sack = 2 , timestamps = 10 ,
  nop = 1 , eol = 1
}
 

Public Member Functions

void parse (uint8_t *beg, uint8_t *end)
 
uint8_t fill (void *h, const tcp_hdr *th, uint8_t option_size)
 
uint8_t get_size (bool syn_on, bool ack_on)
 

Static Public Member Functions

static void write (char *p, option_kind kind, option_len len)
 

Public Attributes

bool _mss_received = false
 
bool _win_scale_received = false
 
bool _timestamps_received = false
 
bool _sack_received = false
 
uint16_t _remote_mss = 536
 
uint16_t _local_mss
 
uint8_t _remote_win_scale = 0
 
uint8_t _local_win_scale = 0
 

Static Public Attributes

static const uint8_t align = 4
 

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