Sponge
CS144's user-space TCP library
|
IPv4 Internet datagram More...
#include <ipv4_datagram.hh>
Public Member Functions | |
ParseResult | parse (const Buffer buffer) |
Parse the segment from a string. More... | |
BufferList | serialize () const |
Serialize the segment to a string. More... | |
Accessors | |
const IPv4Header & | header () const |
IPv4Header & | header () |
const BufferList & | payload () const |
BufferList & | payload () |
Private Attributes | |
IPv4Header | _header {} |
BufferList | _payload {} |
IPv4 Internet datagram
Definition at line 8 of file ipv4_datagram.hh.
|
inline |
Definition at line 23 of file ipv4_datagram.hh.
|
inline |
Definition at line 22 of file ipv4_datagram.hh.
ParseResult IPv4Datagram::parse | ( | const Buffer | buffer | ) |
Parse the segment from a string.
Definition at line 11 of file ipv4_datagram.cc.
|
inline |
Definition at line 26 of file ipv4_datagram.hh.
|
inline |
Definition at line 25 of file ipv4_datagram.hh.
BufferList IPv4Datagram::serialize | ( | ) | const |
Serialize the segment to a string.
Definition at line 23 of file ipv4_datagram.cc.
|
private |
Definition at line 10 of file ipv4_datagram.hh.
|
private |
Definition at line 11 of file ipv4_datagram.hh.