libcoap  4.0.3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
address.h File Reference

representation of network addresses More...

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

Go to the source code of this file.

Data Structures

struct  __coap_address_t
 multi-purpose address abstraction More...

Macros

#define coap_address_t   __coap_address_t

Typedefs

typedef struct __coap_address_t __coap_address_t
 multi-purpose address abstraction

Functions

static int _coap_address_equals_impl (const coap_address_t *a, const coap_address_t *b)
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.
static int coap_address_equals (const coap_address_t *a, const coap_address_t *b)
 Compares given address objects a and b.
static int coap_is_mcast (const coap_address_t *a)
 Checks if given address a denotes a multicast address.

Detailed Description

representation of network addresses

Definition in file address.h.

Macro Definition Documentation

#define coap_address_t   __coap_address_t

Definition at line 69 of file address.h.

Typedef Documentation

multi-purpose address abstraction

Function Documentation

static int _coap_address_equals_impl ( const coap_address_t a,
const coap_address_t b 
)
inlinestatic

Definition at line 72 of file address.h.

static int _coap_is_mcast_impl ( const coap_address_t a)
inlinestatic

Definition at line 95 of file address.h.

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 131 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 119 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 141 of file address.h.