00001
00002
00003
00004
00005
00006
00007 void init_client_errs(void);
00008 extern char *client_errors[];
00009
00010 #define CR_MIN_ERROR 2000
00011 #define CR_MAX_ERROR 2999
00012 #define ER(X) client_errors[(X)-CR_MIN_ERROR]
00013 #define CLIENT_ERRMAP 2
00014
00015 #define CR_UNKNOWN_ERROR 2000
00016 #define CR_SOCKET_CREATE_ERROR 2001
00017 #define CR_CONNECTION_ERROR 2002
00018 #define CR_CONN_HOST_ERROR 2003
00019 #define CR_IPSOCK_ERROR 2004
00020 #define CR_UNKNOWN_HOST 2005
00021 #define CR_SERVER_GONE_ERROR 2006
00022 #define CR_VERSION_ERROR 2007
00023 #define CR_OUT_OF_MEMORY 2008
00024 #define CR_WRONG_HOST_INFO 2009
00025 #define CR_LOCALHOST_CONNECTION 2010
00026 #define CR_TCP_CONNECTION 2011
00027 #define CR_SERVER_HANDSHAKE_ERR 2012
00028 #define CR_SERVER_LOST 2013
00029 #define CR_COMMANDS_OUT_OF_SYNC 2014