|
Sponge
CS144's user-space TCP library
|
Go to the documentation of this file.
8 }
else if (not receiver.
ackno().has_value()) {
const std::string SYN_SENT
size_t bytes_written() const
Total number of bytes written.
const std::string FIN_SENT
std::optional< WrappingInt32 > ackno() const
The ackno that should be sent to the peer.
The "sender" part of a TCP implementation.
const std::string FIN_RECV
size_t bytes_in_flight() const
How many sequence numbers are occupied by segments sent but not yet acknowledged?
The "receiver" part of a TCP implementation.
const std::string SYN_RECV
const std::string SYN_ACKED
uint64_t next_seqno_absolute() const
absolute seqno for the next byte to be sent
ByteStream & stream_out()
static std::string state_summary(const TCPReceiver &receiver)
Summarize the state of a TCPReceiver in a string.
const std::string FIN_ACKED