#include "coap_internal.h"
#include <errno.h>
#include "net/gnrc.h"
#include "net/gnrc/ipv6.h"
#include "net/gnrc/netreg.h"
#include "net/udp.h"
#include "coap_riot.h"
Go to the source code of this file.
◆ address_equals()
static bool address_equals |
( |
const coap_address_t * |
a, |
|
|
const ipv6_addr_t * |
b |
|
) |
| |
|
static |
◆ coap_network_read()
Function interface for reading data.
This function returns the number of bytes that have been read, or a value less than zero on error. In case of an error, *packet
is set to NULL.
- Parameters
-
sock | Socket to read data from |
packet | Received packet metadata and payload. src and dst should be preset. |
- Returns
- The number of bytes received on success, or a value less than zero on error.
Definition at line 71 of file coap_io_riot.c.
◆ coap_network_send()
◆ coap_riot_startup()
void coap_riot_startup |
( |
void |
| ) |
|
This function must be called in the RIOT CoAP thread for RIOT-specific initialization.
Definition at line 144 of file coap_io_riot.c.
◆ find_socket()
◆ get_port()
Returns the port of addr
in network byte order or 0 on error.
Definition at line 152 of file coap_io_riot.c.
◆ get_udp_header()
static udp_hdr_t* get_udp_header |
( |
gnrc_pktsnip_t * |
pkt | ) |
|
|
static |
◆ _msg_q