Sponge
CS144's user-space TCP library
|
Go to the source code of this file.
Classes | |
class | NetParser |
struct | NetUnparser |
Enumerations | |
enum class | ParseResult { NoError = 0 , BadChecksum , PacketTooShort , WrongIPVersion , HeaderTooShort , TruncatedPacket , Unsupported } |
The result of parsing or unparsing an IP datagram, TCP segment, Ethernet frame, or ARP message. More... | |
Functions | |
std::string | as_string (const ParseResult r) |
Output a string representation of a ParseResult. More... | |
|
strong |
The result of parsing or unparsing an IP datagram, TCP segment, Ethernet frame, or ARP message.
std::string as_string | ( | const ParseResult | r | ) |