libcoap 4.3.5-develop-379c7f4
Loading...
Searching...
No Matches
coap_debug_internal.h File Reference

CoAP Logging support internal information. More...

This graph shows which files directly or indirectly include this file:

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.

Detailed Description

CoAP Logging support internal information.

Definition in file coap_debug_internal.h.

Macro Definition Documentation

◆ COAP_DEBUG_INTERNAL_H_

#define COAP_DEBUG_INTERNAL_H_

Definition at line 22 of file coap_debug_internal.h.

Function Documentation

◆ coap_debug_recv_packet()

int coap_debug_recv_packet ( void )

Check to see whether an incoming packet should be dropped or not.

Internal function

Returns
1 if packet is to be let through, 0 if packet is to be dropped.

Definition at line 1577 of file coap_debug.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ coap_debug_reset()

void coap_debug_reset ( void )

Reset all the defined logging parameters.

Internal function

Definition at line 1602 of file coap_debug.c.

Here is the caller graph for this function:

◆ coap_debug_send_packet()

int coap_debug_send_packet ( void )

Check to see whether a packet should be sent or not.

Internal function

Returns
1 if packet is to be sent, 0 if packet is to be dropped.

Definition at line 1521 of file coap_debug.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ coap_option_string()

const char * coap_option_string ( coap_pdu_code_t code,
coap_option_num_t number )

Output ascii representation of option number, if known.

Parameters
codeThe PDU code.
numberThe option number.
Returns
Ascii representation or numeric value in ascii.

Output ascii representation of option number, if known.

Definition at line 640 of file coap_debug.c.

Here is the caller graph for this function:

◆ coap_snprintf()

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

Parameters
bufferThe start of the buffer to write into.
buf_sizeThe size of the buffer to write into.
offsetThe start offset into buffer, updated after buffer is updated with the currently used length of buffer, not including the NUL terminator.
formatThe formatting string to use as per printf().
Returns
The number of characters written to the string. If 0, an error or no more data can be put in buffer.

Definition at line 230 of file coap_debug.c.

Here is the caller graph for this function: