jaulib v1.3.0
Jau Support Library (C++, Java, ..)
Classes | Functions | Variables
Network Utilities

Networking types and functionality. More...

Classes

struct  jau::EUI48
 A packed 48 bit EUI-48 identifier, formerly known as MAC-48 or simply network device MAC address (Media Access Control address). More...
 
struct  jau::EUI48Sub
 A 48 bit EUI-48 sub-identifier, see EUI48. More...
 
class  jau::uuid128_t
 
class  jau::uuid16_t
 
class  jau::uuid32_t
 
class  jau::uuid_t
 

Functions

constexpr EUI48 jau::be_to_cpu (EUI48 const &n) noexcept
 
constexpr EUI48 jau::bswap (EUI48 const &source) noexcept
 
static constexpr void jau::bswap_6bytes (uint8_t *sink, const uint8_t *source) noexcept
 
constexpr EUI48 jau::cpu_to_be (EUI48 const &h) noexcept
 
constexpr EUI48 jau::cpu_to_le (EUI48 const &h) noexcept
 
uuid128_t jau::get_uuid128 (uint8_t const *buffer) noexcept
 
uuid128_t jau::get_uuid128 (uint8_t const *buffer, lb_endian_t const le_or_be) noexcept
 
uuid16_t jau::get_uuid16 (uint8_t const *buffer) noexcept
 
uuid16_t jau::get_uuid16 (uint8_t const *buffer, lb_endian_t const le_or_be) noexcept
 
uuid32_t jau::get_uuid32 (uint8_t const *buffer) noexcept
 
uuid32_t jau::get_uuid32 (uint8_t const *buffer, lb_endian_t const le_or_be) noexcept
 
constexpr EUI48 jau::le_to_cpu (EUI48 const &l) noexcept
 
bool jau::operator!= (const EUI48 &lhs, const EUI48 &rhs) noexcept
 
bool jau::operator!= (const EUI48Sub &lhs, const EUI48Sub &rhs) noexcept
 
bool jau::operator== (const EUI48 &lhs, const EUI48 &rhs) noexcept
 
bool jau::operator== (const EUI48Sub &lhs, const EUI48Sub &rhs) noexcept
 
std::string jau::to_string (const EUI48 &a) noexcept
 
std::string jau::to_string (const EUI48Sub &a) noexcept
 
std::string jau::to_string (const uuid_t::TypeSize v) noexcept
 

Variables

uuid128_t jau::BT_BASE_UUID
 Bluetooth UUID https://www.bluetooth.com/specifications/assigned-numbers/service-discovery/ More...
 

Detailed Description

Networking types and functionality.

Function Documentation

◆ to_string() [1/3]

std::string jau::to_string ( const EUI48Sub a)
inlinenoexcept

Definition at line 184 of file eui48.hpp.

◆ operator==() [1/2]

bool jau::operator== ( const EUI48Sub lhs,
const EUI48Sub rhs 
)
inlinenoexcept

Definition at line 186 of file eui48.hpp.

◆ operator!=() [1/2]

bool jau::operator!= ( const EUI48Sub lhs,
const EUI48Sub rhs 
)
inlinenoexcept

Definition at line 196 of file eui48.hpp.

◆ to_string() [2/3]

std::string jau::to_string ( const EUI48 a)
inlinenoexcept

Definition at line 325 of file eui48.hpp.

◆ operator==() [2/2]

bool jau::operator== ( const EUI48 lhs,
const EUI48 rhs 
)
inlinenoexcept

Definition at line 327 of file eui48.hpp.

◆ operator!=() [2/2]

bool jau::operator!= ( const EUI48 lhs,
const EUI48 rhs 
)
inlinenoexcept

Definition at line 342 of file eui48.hpp.

◆ bswap_6bytes()

static constexpr void jau::bswap_6bytes ( uint8_t *  sink,
const uint8_t *  source 
)
staticconstexprnoexcept

Definition at line 345 of file eui48.hpp.

Here is the caller graph for this function:

◆ bswap()

constexpr EUI48 jau::bswap ( EUI48 const &  source)
constexprnoexcept

Definition at line 354 of file eui48.hpp.

◆ be_to_cpu()

constexpr EUI48 jau::be_to_cpu ( EUI48 const &  n)
constexprnoexcept

Definition at line 364 of file eui48.hpp.

◆ cpu_to_be()

constexpr EUI48 jau::cpu_to_be ( EUI48 const &  h)
constexprnoexcept

Definition at line 371 of file eui48.hpp.

◆ le_to_cpu()

constexpr EUI48 jau::le_to_cpu ( EUI48 const &  l)
constexprnoexcept

Definition at line 378 of file eui48.hpp.

◆ cpu_to_le()

constexpr EUI48 jau::cpu_to_le ( EUI48 const &  h)
constexprnoexcept

Definition at line 385 of file eui48.hpp.

◆ to_string() [3/3]

std::string jau::to_string ( const uuid_t::TypeSize  v)
inlinenoexcept

Definition at line 147 of file uuid.hpp.

◆ get_uuid16() [1/2]

uuid16_t jau::get_uuid16 ( uint8_t const *  buffer)
inlinenoexcept

Definition at line 242 of file uuid.hpp.

◆ get_uuid16() [2/2]

uuid16_t jau::get_uuid16 ( uint8_t const *  buffer,
lb_endian_t const  le_or_be 
)
inlinenoexcept

Definition at line 246 of file uuid.hpp.

◆ get_uuid32() [1/2]

uuid32_t jau::get_uuid32 ( uint8_t const *  buffer)
inlinenoexcept

Definition at line 250 of file uuid.hpp.

◆ get_uuid32() [2/2]

uuid32_t jau::get_uuid32 ( uint8_t const *  buffer,
lb_endian_t const  le_or_be 
)
inlinenoexcept

Definition at line 254 of file uuid.hpp.

◆ get_uuid128() [1/2]

uuid128_t jau::get_uuid128 ( uint8_t const *  buffer)
inlinenoexcept

Definition at line 258 of file uuid.hpp.

Here is the caller graph for this function:

◆ get_uuid128() [2/2]

uuid128_t jau::get_uuid128 ( uint8_t const *  buffer,
lb_endian_t const  le_or_be 
)
inlinenoexcept

Definition at line 262 of file uuid.hpp.

Variable Documentation

◆ BT_BASE_UUID

uuid128_t jau::BT_BASE_UUID
extern

Bluetooth UUID https://www.bluetooth.com/specifications/assigned-numbers/service-discovery/

Bluetooth is LSB or Little-Endian!

BASE_UUID '00000000-0000-1000-8000-00805F9B34FB'