#ifndef __CSINKERR_H__
#define __CSINKERR_H__
/* Here are some error values... I need a string table */
/* to print out more meaningful error messages. */
typedef struct _csink_error CSink_Error;
struct _csink_error {
char *name;
char *description;
};
extern CSink_Error csink_error_internal_error;
extern CSink_Error csink_error_table[];
#if 0
#define CSINK_ERR_NONE 0
#define CSINK_ERR_WAITING -1001
#define CSINK_ERR_OPTVAL -1002
#define CSINK_ERR_GETSOCKOPT -1003
#define CSINK_ERR_DISCONN_WRITE -1004
#define CSINK_ERR_NO_SOCKET -1005
#define CSINK_ERR_NO_CONNECT -1006
#define CSINK_ERR_READ_ERR -1007
#define CSINK_ERR_SEND_ERR -1008
#define CSINK_ERR_ALREADY_CONN -1009
#define CSINK_ERR_NO_PORT -1010
#define CSINK_ERR_NO_HOST -1011
#define CSINK_ERR_NO_LPORT -1012
#define CSINK_ERR_NO_LHOST -1013
#define CSINK_ERR_IP_INVAL -1014
#define CSINK_ERR_EAGAIN -1015
#define CSINK_ERR_EBADF -1016
#define CSINK_ERR_ENOTSOCK -1017
#define CSINK_ERR_EOPNOTSUPP -1018
#define CSINK_ERR_EFAULT -1019
#define CSINK_ERR_EPERM -1020
#define CSINK_ERR_ENOBUFFS -1021
#define CSINK_ERR_NO_ONCONNECT -1022
#define CSINK_ERR_SELECT -1023
#define CSINK_ERR_NO_ONNEWDATA -1024
#define CSINK_ERR_READ_EBADF -1025
#define CSINK_ERR_SEND_EBADF -1025
#define CSINK_ERR_READ_EIO -1026
#define CSINK_ERR_SEND_EIO -1026
#define CSINK_ERR_SOCKET_CREATE_FAILED -1027
#endif
#endif
syntax highlighted by Code2HTML, v. 0.9.1