Sponge
CS144's user-space TCP library
|
Go to the source code of this file.
Classes | |
class | NetParser |
struct | NetUnparser |
Enumerations | |
enum | ParseResult { ParseResult::NoError = 0, ParseResult::BadChecksum, ParseResult::PacketTooShort, ParseResult::WrongIPVersion, ParseResult::HeaderTooShort, ParseResult::TruncatedPacket, ParseResult::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 | ) |