SilcLogHexdumpCb

SYNOPSIS

    typedef SilcBool
    (*SilcDebugHexdumpCb)(char *file, char *function, int line,
                          unsigned char *data,
                          SilcUInt32 data_len,
                          char *message, void *context;

DESCRIPTION

The hexdump logging callback function. The default behaviour is to print a formatted hexdump to stderr, and is commonly what you would like it to be. `file', `function', and `line' are the corresponding offsets in the source files. `data' is the begin of the buffer that should be hexdumped, which is `data_len' bytes long.

The `message' parameter points to a null-terminated buffer containing the received message, while `context' is the caller-specified context. The message must not be modified or freed by the callback function. If the function returns TRUE, SilcLog will assume the message as handled and won't run its default handler.

SEE ALSO

silc_debug_hexdump, silc_log_set_debug_callbacks