17#ifndef COAP_DGRM_INTERNAL_H_
18#define COAP_DGRM_INTERNAL_H_
34#if COAP_CLIENT_SUPPORT
59#if COAP_SERVER_SUPPORT
98 const uint8_t *data,
size_t datalen);
Pulls together all the internal only header files.
Default network I/O 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.
void coap_socket_close(coap_socket_t *sock)
Function interface to close off a socket (for both TCP and UDP).
ssize_t coap_socket_recv(coap_socket_t *sock, coap_packet_t *packet)
Function interface for reading data.
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.
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...
Multi-purpose address abstraction.
Abstraction of virtual session that can be attached to coap_context_t (client) or coap_endpoint_t (se...