STUN module (rfc5389)
FlagAttribute
Implements a zero-length STUN/TURN flag attribute (presence implies the flag is set).
FlagAttribute
#include <icy/stun/attributes.h>Inherits:
Attribute
Implements a zero-length STUN/TURN flag attribute (presence implies the flag is set).
Public Methods
| Return | Name | Description |
|---|---|---|
FlagAttribute | #### Parameters | |
std::unique_ptr< Attribute > | clone virtual | Returns a deep copy of this attribute. |
void | read virtual inline | No-op: flag attributes carry no body bytes. |
void | write virtual const inline | No-op: flag attributes carry no body bytes. |
FlagAttribute
FlagAttribute(uint16_t type)Parameters
typeWire type code for the concrete attribute.
clone
virtual
virtual std::unique_ptr< Attribute > clone()Returns a deep copy of this attribute.
read
virtual inline
virtual inline void read(BitReader &)No-op: flag attributes carry no body bytes.
write
virtual const inline
virtual inline void write(BitWriter &) constNo-op: flag attributes carry no body bytes.
Public Static Attributes
| Return | Name | Description |
|---|---|---|
constexpr uint16_t | Size static |
Size
static
constexpr uint16_t Size = 0