Back to Site
Loading...
Searching...
No Matches
librats::StunAttribute Struct Reference

STUN attribute base class. More...

#include <stun.h>

Collaboration diagram for librats::StunAttribute:
[legend]

Public Member Functions

 StunAttribute ()
 
 StunAttribute (StunAttributeType t, const std::vector< uint8_t > &v)
 
size_t padded_length () const
 

Public Attributes

StunAttributeType type
 
std::vector< uint8_t > value
 

Detailed Description

STUN attribute base class.

Definition at line 214 of file stun.h.

Constructor & Destructor Documentation

◆ StunAttribute() [1/2]

librats::StunAttribute::StunAttribute ( )
inline

Definition at line 218 of file stun.h.

◆ StunAttribute() [2/2]

librats::StunAttribute::StunAttribute ( StunAttributeType  t,
const std::vector< uint8_t > &  v 
)
inline

Definition at line 219 of file stun.h.

Member Function Documentation

◆ padded_length()

size_t librats::StunAttribute::padded_length ( ) const
inline

Definition at line 221 of file stun.h.

References value.

Member Data Documentation

◆ type

StunAttributeType librats::StunAttribute::type

Definition at line 215 of file stun.h.

◆ value

std::vector<uint8_t> librats::StunAttribute::value

Definition at line 216 of file stun.h.

Referenced by padded_length().


The documentation for this struct was generated from the following file: