TURN module (rfc5766)

Permission::Key

Key

#include <icy/turn/permission.h>

Public Attributes

ReturnNameDescription
intaf
std::array< uint8_t, 16 >bytes
uint8_tsize

af

int af = AF_UNSPEC

bytes

std::array< uint8_t, 16 > bytes {}

size

uint8_t size = 0

Public Methods

ReturnNameDescription
boolvalid const inline
boolmatches const inline
boolmatches const inline

valid

const inline

inline bool valid() const

matches

const inline

inline bool matches(const net::Address & address) const

matches

const inline

inline bool matches(const Key & other) const

Public Static Methods

ReturnNameDescription
KeyfromAddress static inline
KeyfromIP static inline

fromAddress

static inline

static inline Key fromAddress(const net::Address & address)

fromIP

static inline

static inline Key fromIP(const std::string & ip)