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

ReturnNameDescription
FlagAttribute#### Parameters
std::unique_ptr< Attribute >clone virtualReturns a deep copy of this attribute.
voidread virtual inlineNo-op: flag attributes carry no body bytes.
voidwrite virtual const inlineNo-op: flag attributes carry no body bytes.

FlagAttribute

FlagAttribute(uint16_t type)

Parameters

  • type Wire 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 &) const

No-op: flag attributes carry no body bytes.

Public Static Attributes

ReturnNameDescription
constexpr uint16_tSize static

Size

static

constexpr uint16_t Size = 0