Representation of network addresses.
More...
#include <assert.h>
#include <stdint.h>
#include <string.h>
#include <sys/types.h>
#include "libcoap.h"
Go to the source code of this file.
Representation of network addresses.
Definition in file address.h.
§ coap_address_t
multi-purpose address abstraction
§ _coap_address_isany_impl()
§ coap_address_equals()
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 18 of file address.c.
§ coap_address_init()
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
-
Definition at line 102 of file address.h.
§ coap_address_isany()
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 130 of file address.h.
§ coap_is_mcast()
Checks if given address a
denotes a multicast address.
This function returns 1
if a
is multicast, 0
otherwise.
Definition at line 41 of file address.c.