Main Page | Data Structures | Directories | File List | Data Fields | Globals

ks_error.c File Reference

error handling functions for libkarmaclient. More...

#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,...)


Detailed Description

error handling functions for libkarmaclient.

Definition in file ks_error.c.


Define Documentation

#define KS_ERRBUFSIZ   1024
 

Definition at line 44 of file ks_error.c.

Referenced by ks_error().

#define KS_ERRTAG   "libkarmaclient: "
 

Definition at line 43 of file ks_error.c.

Referenced by ks_error().


Function Documentation

void ks_error const char *  format,
  ...
 

Passes an error on to the error handler, after expansion. See printf for a list of expansion tokens.

Parameters:
format The format string.
Returns:
nothing

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.

Parameters:
handler A pointer to a function to be passed error messages.
Returns:
nothing

Definition at line 58 of file ks_error.c.


Generated on Tue Aug 7 21:11:31 2007 for libkarmaclient by  doxygen 1.4.4