nano-client API Reference
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages

Typedefs

typedef NANO_u32 NANO_Ipv4Addr
 A data type to repreent IPv4 addresses. More...
 

Functions

void NANO_OSAPI_Ipv4Addr_from_octets (NANO_Ipv4Addr *const self, const NANO_u8 b0, const NANO_u8 b1, const NANO_u8 b2, const NANO_u8 b3)
 Generate an IPv4 address (as a 32-bit unsigned integer in network endianness) from individual octet components. More...
 
NANO_bool NANO_OSAPI_Ipv4Addr_is_loopback (const NANO_Ipv4Addr self)
 TODO. More...
 
NANO_bool NANO_OSAPI_Ipv4Addr_is_multicast (const NANO_Ipv4Addr self)
 

Detailed Description

Typedef Documentation

◆ NANO_Ipv4Addr

A data type to repreent IPv4 addresses.

The address is stored in network endianness (i.e. big-endian).

Function Documentation

◆ NANO_OSAPI_Ipv4Addr_from_octets()

void NANO_OSAPI_Ipv4Addr_from_octets ( NANO_Ipv4Addr *const  self,
const NANO_u8  b0,
const NANO_u8  b1,
const NANO_u8  b2,
const NANO_u8  b3 
)

Generate an IPv4 address (as a 32-bit unsigned integer in network endianness) from individual octet components.

Parameters
selfThe IP address to set.
b0The first (most significant) octet of the address.
b1The second octet of the address.
b2The third octet of the address.
b3The fourth (least significant) octet of the address.

◆ NANO_OSAPI_Ipv4Addr_is_loopback()

NANO_bool NANO_OSAPI_Ipv4Addr_is_loopback ( const NANO_Ipv4Addr  self)

TODO.

Parameters
self
Returns
NANO_bool

◆ NANO_OSAPI_Ipv4Addr_is_multicast()

NANO_bool NANO_OSAPI_Ipv4Addr_is_multicast ( const NANO_Ipv4Addr  self)
Parameters
self
Returns
NANO_bool