#include "ks_config.h"
#include "ks_common.h"
#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
Go to the source code of this file.
Defines | |
| #define | KS_ERRTAG "libkarmaclient: " |
| #define | KS_ERRBUFSIZ 1024 |
Functions | |
| void | ks_error_handler_set (ks_error_handler_t handler) |
| void | ks_error (const char *format,...) |
Definition in file ks_error.c.
| #define KS_ERRBUFSIZ 1024 |
| #define KS_ERRTAG "libkarmaclient: " |
| void ks_error | ( | const char * | format, | |
| ... | ||||
| ) |
Passes an error on to the error handler, after expansion. See printf for a list of expansion tokens.
| format | The format string. |
Definition at line 72 of file ks_error.c.
References KS_ERRBUFSIZ, and KS_ERRTAG.
Referenced by ks_response_bparse(), ks_socket_connect(), ks_socket_new(), ks_socket_recv(), and ks_socket_send().
| void ks_error_handler_set | ( | ks_error_handler_t | handler | ) |
Set the error handler which protocol errors will be delivered to.
| handler | A pointer to a function to be passed error messages. |
Definition at line 58 of file ks_error.c.
1.5.1