PcapPlusPlus
Next
SingleCommandTextProtocol.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <sstream>
4
#include "
Layer.h
"
5
7
12
namespace
pcpp
13
{
14
18
class
SingleCommandTextProtocol
:
public
Layer
19
{
20
private
:
21
size_t
getArgumentFieldOffset()
const
;
22
void
setDelimiter(
bool
hyphen);
23
bool
hyphenRequired(
const
std::string& value);
24
25
protected
:
26
SingleCommandTextProtocol
(uint8_t* data,
size_t
dataLen,
Layer
* prevLayer,
Packet
* packet,
27
ProtocolType
protocol)
28
:
Layer
(data, dataLen, prevLayer, packet, protocol) {};
29
30
SingleCommandTextProtocol
(
const
std::string& command,
const
std::string& option,
ProtocolType
protocol);
31
32
bool
setCommandInternal(std::string value);
33
bool
setCommandOptionInternal(std::string value);
34
35
std::string getCommandInternal()
const
;
36
std::string getCommandOptionInternal()
const
;
37
38
public
:
45
bool
isMultiLine
()
const
;
46
54
static
bool
isDataValid
(
const
uint8_t* data,
size_t
dataSize);
55
};
56
}
// namespace pcpp
Layer.h
pcpp::Layer
Definition:
Layer.h:69
pcpp::Packet
Definition:
Packet.h:27
pcpp::SingleCommandTextProtocol
Definition:
SingleCommandTextProtocol.h:19
pcpp::SingleCommandTextProtocol::isMultiLine
bool isMultiLine() const
pcpp::SingleCommandTextProtocol::isDataValid
static bool isDataValid(const uint8_t *data, size_t dataSize)
pcpp
The main namespace for the PcapPlusPlus lib.
pcpp::ProtocolType
uint8_t ProtocolType
Definition:
ProtocolType.h:17
Packet++
header
SingleCommandTextProtocol.h
Generated on Wed Nov 13 2024 01:52:36 for PcapPlusPlus by
1.9.1