|
libcoap 4.3.5-develop-379c7f4
|
CoAP Logging support internal information. More...
Go to the source code of this file.
Macros | |
| #define | COAP_DEBUG_INTERNAL_H_ |
Functions | |
| int | coap_debug_send_packet (void) |
| Check to see whether a packet should be sent or not. | |
| int | coap_debug_recv_packet (void) |
| Check to see whether an incoming packet should be dropped or not. | |
| void | coap_debug_reset (void) |
| Reset all the defined logging parameters. | |
| const char * | coap_option_string (coap_pdu_code_t code, coap_option_num_t number) |
| Output ascii representation of option number, if known. | |
| int | coap_snprintf (char *buffer, size_t buf_size, size_t *offset, const char *format,...) |
| The equivalent to snprintf() functionality, but returning the actual characters added and defining the buffer offset in a separate parameter. | |
CoAP Logging support internal information.
Definition in file coap_debug_internal.h.
| #define COAP_DEBUG_INTERNAL_H_ |
Definition at line 22 of file coap_debug_internal.h.
| int coap_debug_recv_packet | ( | void | ) |
Check to see whether an incoming packet should be dropped or not.
Internal function
1 if packet is to be let through, 0 if packet is to be dropped. Definition at line 1577 of file coap_debug.c.
| void coap_debug_reset | ( | void | ) |
Reset all the defined logging parameters.
Internal function
Definition at line 1602 of file coap_debug.c.
| int coap_debug_send_packet | ( | void | ) |
Check to see whether a packet should be sent or not.
Internal function
1 if packet is to be sent, 0 if packet is to be dropped. Definition at line 1521 of file coap_debug.c.
| const char * coap_option_string | ( | coap_pdu_code_t | code, |
| coap_option_num_t | number ) |
Output ascii representation of option number, if known.
| code | The PDU code. |
| number | The option number. |
Output ascii representation of option number, if known.
Definition at line 640 of file coap_debug.c.
| int coap_snprintf | ( | char * | buffer, |
| size_t | buf_size, | ||
| size_t * | offset, | ||
| const char * | format, | ||
| ... ) |
The equivalent to snprintf() functionality, but returning the actual characters added and defining the buffer offset in a separate parameter.
Internal function
| buffer | The start of the buffer to write into. |
| buf_size | The size of the buffer to write into. |
| offset | The start offset into buffer, updated after buffer is updated with the currently used length of buffer, not including the NUL terminator. |
| format | The formatting string to use as per printf(). |
buffer. Definition at line 230 of file coap_debug.c.