|
libcoap 4.3.5-develop-146e0bb
|
Internal API for handling CoAP Datagrams (UDP) (RFC7252) More...
Collaboration diagram for Datagram (UDP) Support: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. | |
Internal API for handling CoAP Datagrams (UDP) (RFC7252)
| void coap_socket_dgrm_close | ( | coap_socket_t * | sock | ) |
Function interface to close off a datagram socket.
Internal function.
| sock | Socket to close. |
Definition at line 891 of file coap_dgrm_posix.c.
Here is the call graph for this function:
Here is the caller graph for this function:| ssize_t coap_socket_recv | ( | coap_socket_t * | sock, |
| coap_packet_t * | packet | ||
| ) |
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.
Internal function.
| sock | Socket to read data from. |
| packet | Received packet metadata and payload. src and dst should be preset. |
Definition at line 671 of file coap_dgrm_posix.c.
Here is the call graph for this function:
Here is the caller graph for this function:| 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.
This function returns the number of bytes that have been transmitted, or a value less than zero on error.
Internal function.
| sock | Socket to send data over. |
| session | Addressing information for unconnected sockets, or NULL |
| data | The data to send. |
| datalen | The actual length of data. |
Definition at line 478 of file coap_dgrm_posix.c.
Here is the call graph for this function:
Here is the caller graph for this function: