2005-03-19 22:16:49 +00:00
|
|
|
/* -*-mode: C; fill-column: 78; c-basic-offset: 4; -*- */
|
|
|
|
|
|
|
|
#ifndef _XWRELAY_PRIV_H_
|
|
|
|
#define _XWRELAY_PRIV_H_
|
|
|
|
|
2005-07-05 21:57:00 +00:00
|
|
|
#include <time.h>
|
|
|
|
|
2005-10-01 16:33:45 +00:00
|
|
|
typedef unsigned char HostID;
|
2005-03-19 22:16:49 +00:00
|
|
|
|
2005-10-02 16:08:42 +00:00
|
|
|
typedef enum {
|
2005-10-30 05:10:26 +00:00
|
|
|
XW_LOGERROR
|
|
|
|
,XW_LOGINFO
|
|
|
|
,XW_LOGVERBOSE0
|
|
|
|
,XW_LOGVERBOSE1
|
2005-10-02 16:08:42 +00:00
|
|
|
} XW_LogLevel;
|
|
|
|
|
|
|
|
void logf( XW_LogLevel level, const char* format, ... );
|
2005-03-19 22:16:49 +00:00
|
|
|
|
2005-03-30 01:32:02 +00:00
|
|
|
void killSocket( int socket, char* why );
|
2005-03-19 22:16:49 +00:00
|
|
|
|
2005-07-06 01:36:52 +00:00
|
|
|
int send_with_length_unsafe( int socket, unsigned char* buf, int bufLen );
|
|
|
|
|
2005-06-23 04:26:44 +00:00
|
|
|
time_t now();
|
|
|
|
|
2005-03-19 22:16:49 +00:00
|
|
|
#endif
|