libcoap 4.3.5-develop-490e4e0
Loading...
Searching...
No Matches
coap_dgrm_posix.c File Reference

Posix CoAP Datagram (UDP) handling functions. More...

+ Include dependency graph for coap_dgrm_posix.c:

Go to the source code of this file.

Data Structures

struct  in6_pktinfo
 
struct  in_pktinfo
 

Macros

#define SOL_IP   IPPROTO_IP
 
#define COAP_SOL_IP   SOL_IP
 
#define iov_len_t   size_t
 
#define SIN6(A)   ((struct sockaddr_in6 *)(A))
 

Functions

ssize_t coap_socket_send (coap_socket_t *sock, coap_session_t *session, const uint8_t *data, size_t datalen)
 Function interface for data transmission.
 
ssize_t coap_socket_recv (coap_socket_t *sock, coap_packet_t *packet)
 Function interface for reading data.
 
void coap_socket_dgrm_close (coap_socket_t *sock)
 Function interface to close off a datagram socket.
 

Detailed Description

Posix CoAP Datagram (UDP) handling functions.

Definition in file coap_dgrm_posix.c.

Macro Definition Documentation

◆ COAP_SOL_IP

#define COAP_SOL_IP   SOL_IP

Definition at line 388 of file coap_dgrm_posix.c.

◆ iov_len_t

#define iov_len_t   size_t

Definition at line 426 of file coap_dgrm_posix.c.

◆ SIN6

#define SIN6 (   A)    ((struct sockaddr_in6 *)(A))

Definition at line 662 of file coap_dgrm_posix.c.

◆ SOL_IP

#define SOL_IP   IPPROTO_IP

Definition at line 383 of file coap_dgrm_posix.c.