libcoap  4.1.2
Data Structures | Typedefs | Functions
address.h File Reference

Representation of network addresses. More...

#include <assert.h>
#include <stdint.h>
#include <string.h>
Include dependency graph for address.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  coap_address_t
 multi-purpose address abstraction More...
 

Typedefs

typedef struct coap_address_t coap_address_t
 multi-purpose address abstraction More...
 

Functions

int coap_address_equals (const coap_address_t *a, const coap_address_t *b)
 Compares given address objects a and b. More...
 
static int _coap_address_isany_impl (const coap_address_t *a)
 
static int _coap_is_mcast_impl (const coap_address_t *a)
 
static void coap_address_init (coap_address_t *addr)
 Resets the given coap_address_t object addr to its default values. More...
 
static int coap_address_isany (const coap_address_t *a)
 Checks if given address object a denotes the wildcard address. More...
 
static int coap_is_mcast (const coap_address_t *a)
 Checks if given address a denotes a multicast address. More...
 

Detailed Description

Representation of network addresses.

Definition in file address.h.

Typedef Documentation

multi-purpose address abstraction

Function Documentation

static int _coap_address_isany_impl ( const coap_address_t a)
inlinestatic

Definition at line 75 of file address.h.

Here is the caller graph for this function:

static int _coap_is_mcast_impl ( const coap_address_t a)
inlinestatic

Definition at line 92 of file address.h.

Here is the caller graph for this function:

int coap_address_equals ( const coap_address_t a,
const coap_address_t b 
)

Compares given address objects a and b.

This function returns 1 if addresses are equal, 0 otherwise. The parameters a and b must not be NULL;

Definition at line 17 of file address.c.

Here is the caller graph for this function:

static void coap_address_init ( coap_address_t addr)
inlinestatic

Resets the given coap_address_t object addr to its default values.

In particular, the member size must be initialized to the available size for storing addresses.

Parameters
addrThe coap_address_t object to initialize.

Definition at line 116 of file address.h.

Here is the call graph for this function:

Here is the caller graph for this function:

static int coap_address_isany ( const coap_address_t a)
inlinestatic

Checks if given address object a denotes the wildcard address.

This function returns 1 if this is the case, 0 otherwise. The parameters a must not be NULL;

Definition at line 144 of file address.h.

Here is the call graph for this function:

Here is the caller graph for this function:

static int coap_is_mcast ( const coap_address_t a)
inlinestatic

Checks if given address a denotes a multicast address.

This function returns 1 if a is multicast, 0 otherwise.

Definition at line 154 of file address.h.

Here is the call graph for this function:

Here is the caller graph for this function: