Class ProtocolL7¶
Defined in File peafowl.hpp
Class Documentation¶
-
class
peafowl::ProtocolL7¶ L7 (application level) protocol.
Public Functions
-
ProtocolL7(pfwl_protocol_l7_t protocol)¶ Copy constructor
- Parameters
protocol: The protocol to copy.
-
ProtocolL7(const std::string &protocol)¶ Build the protocol starting from its name.
- Parameters
protocol: The protocol name.
-
const std::string &
getName() const¶ Returns the name of the protocol.
- Return
The name of the protocol.
-
pfwl_protocol_l7_t
getId() const¶ Returns the identifier of the protocol.
- Return
The identifier of the protocol.
-
operator pfwl_protocol_l7_t() const¶ Accesses the protocol.
Friends
-
friend bool
operator==(const ProtocolL7 &p1, const pfwl_protocol_l7_t &p2)¶ Checks if two protocols are equal.
- Return
True if the two protocols are equal, false otherwise.
- Parameters
p1: The first protocol.p2: The second protocol.
-
friend bool
operator!=(const ProtocolL7 &p1, const pfwl_protocol_l7_t &p2)¶ Checks if two protocols are different.
- Return
True if the two protocols are different, false otherwise.
- Parameters
p1: The first protocol.p2: The second protocol.
-