PcapPlusPlus
|
#include <TcpLayer.h>
Public Types | |
enum | NopEolOptionTypes { NOP, EOL } |
Public Member Functions | |
TcpOptionBuilder (TcpOptionType optionType, const uint8_t *optionValue, uint8_t optionValueLen) | |
TcpOptionBuilder (TcpOptionType optionType, uint8_t optionValue) | |
TcpOptionBuilder (TcpOptionType optionType, uint16_t optionValue) | |
TcpOptionBuilder (TcpOptionType optionType, uint32_t optionValue) | |
TcpOptionBuilder (NopEolOptionTypes optionType) | |
TcpOption | build () const |
A class for building TCP option records. This builder receives the TCP option parameters in its c'tor, builds the TCP option raw buffer and provides a build() method to get a TcpOption object out of it
|
inline |
A c'tor for building TCP options which their value is a byte array. The TcpOption object can be later retrieved by calling build()
[in] | optionType | TCP option type |
[in] | optionValue | A buffer containing the option value. This buffer is read-only and isn't modified in any way. |
[in] | optionValueLen | Option value length in bytes |
|
inline |
|
inline |
|
inline |
pcpp::TcpOptionBuilder::TcpOptionBuilder | ( | NopEolOptionTypes | optionType | ) |
A c'tor for building TCP NOP and EOL options. These option types are special in that they contain only 1 byte which is the TCP option type (NOP or EOL). The TcpOption object can be later retrieved by calling build()
[in] | optionType | An enum value indicating which option type to build (NOP or EOL) |