libcoap 4.3.5-develop-ea01661
Loading...
Searching...
No Matches
coap_dgrm_internal.h File Reference

CoAP Datagram (UDP) internal information. More...

#include "coap_internal.h"
#include "coap_io.h"
+ Include dependency graph for coap_dgrm_internal.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int coap_socket_connect_udp (coap_socket_t *sock, const coap_address_t *local_if, const coap_address_t *server, int default_port, coap_address_t *local_addr, coap_address_t *remote_addr)
 Create a new UDP socket and 'connect' it to the address tuple.
 
int coap_socket_bind_udp (coap_socket_t *sock, const coap_address_t *listen_addr, coap_address_t *bound_addr)
 Create a new UDP socket and then listen for new incoming UDP sessions to the specified IP address and port.
 
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_close (coap_socket_t *sock)
 Function interface to close off a socket (for both TCP and UDP).
 

Detailed Description

CoAP Datagram (UDP) internal information.

Definition in file coap_dgrm_internal.h.