libcoap  4.1.1
 All Data Structures Files Functions Variables Typedefs Macros Groups Pages
Functions
address.h File Reference

representation of network addresses More...

#include "config.h"
#include <assert.h>
#include <string.h>
#include <stdint.h>
#include <netinet/in.h>
#include <sys/socket.h>

Go to the source code of this file.

Functions

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_equals (const coap_address_t *a, const coap_address_t *b)
 Compares given address objects a and b. 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.

Function Documentation

static int coap_address_equals ( const coap_address_t *  a,
const coap_address_t *  b 
)
inlinestatic

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 149 of file address.h.

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 134 of file address.h.

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 159 of file address.h.