Soletta™ Framework
Framework for making IoT devices

Full online documentation | C API Index
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
sol_network_link_addr Struct Reference

Structure to represent a network address, both IPv6 and IPv4 are valid. More...

#include <sol-network.h>

Data Fields

union {
   struct {
      uint8_t   bt_addr [6]
 
      uint8_t   bt_type
 
   } 
 
   uint8_t   in [4]
 
   uint8_t   in6 [16]
 
addr
 The address itself. More...
 
enum sol_network_family family
 IPv4 or IPv6 family. More...
 
uint16_t port
 The port associed with the IP address. More...
 

Detailed Description

Structure to represent a network address, both IPv6 and IPv4 are valid.

Examples:
/src/samples/bluetooth/browse.c, /src/samples/bluetooth/connect-paired.c, /src/samples/coap/iotivity-test-client.c, /src/samples/coap/oic-client.c, /src/samples/coap/simple-client.c, /src/samples/coap/simple-server.c, /src/samples/http/server-sse.c, /src/samples/network/echo-client.c, /src/samples/network/echo-server.c, and /src/samples/network/network-status.c.

Field Documentation

union { ... } sol_network_link_addr::addr
uint8_t sol_network_link_addr::bt_addr[6]
uint8_t sol_network_link_addr::bt_type
enum sol_network_family sol_network_link_addr::family
uint8_t sol_network_link_addr::in[4]
uint8_t sol_network_link_addr::in6[16]
uint16_t sol_network_link_addr::port

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