PcapPlusPlus
22.11
SingleCommandTextProtocol.h
Go to the documentation of this file.
1
#ifndef PACKETPP_SINGLE_COMMAND_TEXT_PROTOCOL_LAYER
2
#define PACKETPP_SINGLE_COMMAND_TEXT_PROTOCOL_LAYER
3
4
#include <sstream>
5
#include "
Layer.h
"
6
8
13
namespace
pcpp
14
{
15
19
class
SingleCommandTextProtocol
:
public
Layer
20
{
21
private
:
22
size_t
getArgumentFieldOffset()
const
;
23
void
setDelimiter(
bool
hyphen);
24
bool
hyphenRequired(std::string value);
25
26
protected
:
27
SingleCommandTextProtocol
(uint8_t *data,
size_t
dataLen,
Layer
*prevLayer,
Packet
*packet) :
Layer
(data, dataLen, prevLayer, packet) {};
28
SingleCommandTextProtocol
(std::string &command, std::string &option);
29
30
bool
setCommandInternal(std::string value);
31
bool
setCommandOptionInternal(std::string value);
32
33
std::string getCommandInternal()
const
;
34
std::string getCommandOptionInternal()
const
;
35
36
public
:
37
43
bool
isMultiLine
()
const
;
44
52
static
bool
isDataValid
(
const
uint8_t *data,
size_t
dataSize);
53
};
54
}
// namespace pcpp
55
56
#endif
/* PACKETPP_SINGLE_COMMAND_TEXT_PROTOCOL_LAYER */
pcpp
The main namespace for the PcapPlusPlus lib.
pcpp::SingleCommandTextProtocol
Definition:
SingleCommandTextProtocol.h:19
pcpp::Layer
Definition:
Layer.h:70
pcpp::Packet
Definition:
Packet.h:26
Layer.h
pcpp::SingleCommandTextProtocol::isDataValid
static bool isDataValid(const uint8_t *data, size_t dataSize)
pcpp::SingleCommandTextProtocol::isMultiLine
bool isMultiLine() const
Dist
header
SingleCommandTextProtocol.h
Generated on Sat Nov 5 2022 09:20:27 for PcapPlusPlus by
1.8.13