Sponge
CS144's user-space TCP library
|
Config for TCP sender and receiver. More...
#include <tcp_config.hh>
Public Attributes | |
std::optional< WrappingInt32 > | fixed_isn {} |
size_t | recv_capacity = DEFAULT_CAPACITY |
Receive capacity, in bytes. More... | |
uint16_t | rt_timeout = TIMEOUT_DFLT |
Initial value of the retransmission timeout, in milliseconds. More... | |
size_t | send_capacity = DEFAULT_CAPACITY |
Sender capacity, in bytes. More... | |
Static Public Attributes | |
static constexpr size_t | DEFAULT_CAPACITY = 64000 |
Default capacity. More... | |
static constexpr size_t | MAX_PAYLOAD_SIZE = 1452 |
Max TCP payload that fits in either IPv4 or UDP datagram. More... | |
static constexpr unsigned | MAX_RETX_ATTEMPTS = 8 |
Maximum re-transmit attempts before giving up. More... | |
static constexpr uint16_t | TIMEOUT_DFLT = 1000 |
Default re-transmit timeout is 1 second. More... | |
Config for TCP sender and receiver.
Definition at line 12 of file tcp_config.hh.
|
staticconstexpr |
Default capacity.
Definition at line 14 of file tcp_config.hh.
std::optional<WrappingInt32> TCPConfig::fixed_isn {} |
Definition at line 22 of file tcp_config.hh.
|
staticconstexpr |
Max TCP payload that fits in either IPv4 or UDP datagram.
Definition at line 15 of file tcp_config.hh.
|
staticconstexpr |
Maximum re-transmit attempts before giving up.
Definition at line 17 of file tcp_config.hh.
size_t TCPConfig::recv_capacity = DEFAULT_CAPACITY |
Receive capacity, in bytes.
Definition at line 20 of file tcp_config.hh.
uint16_t TCPConfig::rt_timeout = TIMEOUT_DFLT |
Initial value of the retransmission timeout, in milliseconds.
Definition at line 19 of file tcp_config.hh.
size_t TCPConfig::send_capacity = DEFAULT_CAPACITY |
Sender capacity, in bytes.
Definition at line 21 of file tcp_config.hh.
|
staticconstexpr |
Default re-transmit timeout is 1 second.
Definition at line 16 of file tcp_config.hh.