libcoap 4.3.5-develop-ea01661
|
CoAP Datagram (UDP) internal information. More...
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). | |
CoAP Datagram (UDP) internal information.
Definition in file coap_dgrm_internal.h.