📄 error.h
字号:
//--------------------------------------------------------------------
//Error Code List : 2001.1.17(final 2001.1.19)
//
// Creat Socket failed -1
// Connect ISGM failed -2
// IP convert failed -3
//
// Send Buffer failed -2
//
// Recive Timeout -1
// Recive Buffer failed -2
//
// Socket not in open -1
// Close socket failed -2
//
// Registered_Delivery out of bound -11
// Tls_available out of bound -12
// Msg_Fmt out of bound -13
// DestUsr_tl out of Bound -14
// Dest_Terminal_id out of bound -15
// Message too long -16
//
// Query_Type out of bound -17
//
// Not the correct Command_ID -18
//
// Result out of bound -19
//
// Host socket init failed -20
// host socket bind failed -21
// host listen failed -22
// host accept failed -23
// Illegal client ip -24
//
// Fee type out of bound -25
//
//======================================================================
#define CREAT_SOCKET_FAILED -1
#define CONNECT_ISGM_FAILED -2
#define IP_CONVERT_FAILED -3
#define SEND_DATA_FAILED -4
#define RECEIVE_TIMEOUT -5
#define RECEIVE_DATA_FAILED -6
#define SOCKET_INEXISTENCE -7
#define CLOSE_SOCKET_FAILED -8
#define OPEN_LOGFILE_FAILED -9
#define RD_OVERFLOW -11
#define TA_OVERFLOW -12
#define MF_OVERFLOW -13
#define DT_OVERFLOW -14
#define DTI_OVERFLOW -15
#define MESSAGE_TOO_LONG -16
#define QT_OVERFLOW -17
#define ILLEGAL_COMMAND_ID -18
#define RESULT_OVERFLOW -19
#define HOST_SOCKET_INIT_FAILED -20
#define HOST_SOCKET_BIND_FAILED -21
#define HOST_LISTEN_FAILED -22
#define HOST_ACCEPT_FAILED -23
#define ILLEGAL_CLIENT_IP -24
#define FT_OVERFLOW -25
#define ACCEPT_SOCKET_FAILED -26
#define INIT_SOCKET_FAILED -27
#define BIND_SOCKET_FAILED -29
#define LISTEN_SOCKET_FAILED -30
#define UT_OVERFLOW -31
#define MALLOC_FAILED -40
#define SOCKET_DOWN -50
#define MSG_LENGTH 240 //here set the msg content length : must be even
#define conn_timeout 5 //here set a timeout,unit : Seconds
#define PACK_INIT_ERR -100 //message haven't correct init
#define PACK_CHECK_ERR -101 //body check fail
#define PACK_BUF_OVERLOAD -102 //fail when change object to packet
#define PACK_UNKNOWN_CMD -103 //error command
#define PACK_PARM_INVALID -104 //input parameter is not valid.
#define XW_SEND_ERROR 100
//#define min(a, b) ((a)<(b))?(a):(b)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -