⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cmpp_error.h

📁 本接口实现了中国移动通信互联网短信网关接口协议(CMPP2.0)
💻 H
字号:
/*********************************************************************************************
**********************************************************************************************
****
****		File name:						cmpp_error.h
****		Creation	date(DD.MM.YY):		04/04/03
****		Author:							Tom fan
****
****		Comment:
****
****
****		Revisions:
****		$Log$		
****		Revision 1.0	2003/04/04	Tom fan
****		Begin create this file!
****
****
***********************************************************************************************
***********************(C)	Copyright Giesecke & Devrient	2003******************************/
#ifndef CMPP_ERROR_H
#define CMPP_ERROR_H

#ifdef __cplusplus
extern "C"{
#endif

#define		CMPP_SUCCESS				0							/*success*/
#define		CMPP_ERROR_START			0x40000000				
#define		CMPP_EINVALSOCK			CMPP_ERROR_START+1			/*create socket fail*/
#define		CMPP_EINVAL				CMPP_ERROR_START+2			/*illegal server address*/
#define		CMPP_HOST_UNREACHABLE	CMPP_ERROR_START+3			/*fail to connect isc*/
#define		CMPP_TIMEOUT			CMPP_ERROR_START+4			/*send or recv timeout*/
#define		CMPP_USERINVAL			CMPP_ERROR_START+5			/*user or pwd illegal*/
#define		CMPP_DISCONNECT			CMPP_ERROR_START+6			/*connection end*/
#define		CMPP_TOOHIGH_VERSION	CMPP_ERROR_START+9			/*too high version*/
/*SOCKET ERROR*/
#define		CMPP_SOCKET_CREATEFAIL			CMPP_ERROR_START+100
#define		CMPP_SOCKET_CONNECTFAIL			CMPP_ERROR_START+101
#define		CMPP_SOCKET_SENDTIMEOUT			CMPP_ERROR_START+102
#define		CMPP_SOCKET_SENDERROR			CMPP_ERROR_START+103
#define		CMPP_SOCKET_CLOSED				CMPP_ERROR_START+104
#define		CMPP_SOCKET_RECVTIMEOUT			CMPP_ERROR_START+105
#define		CMPP_SOCKET_RECVERROR			CMPP_ERROR_START+106
#define		CMPP_CLOSESOCKET_ERROR			CMPP_ERROR_START+107
#define		CMPP_UNSENDALL					CMPP_ERROR_START+108
#define		CMPP_SOCKET_SIZE_ERROR			CMPP_ERROR_START+109
#define		CMPP_ILLEGAL_CMD				CMPP_ERROR_START+110
#define		CMPP_LOGINFAIL					CMPP_ERROR_START+111
#define		CMPP_SOCKET_BINDFAIL			CMPP_ERROR_START+112
#define		CMPP_SOCKET_ACCEPTFAIL			CMPP_ERROR_START+113
#define		CMPP_API_EXCEPTION				CMPP_ERROR_START+200
#define		CMPP_SOCKET_EXCEPTION			CMPP_ERROR_START+300
#define		CMPP_API_INVALPARAM				CMPP_ERROR_START+400
#define		CMPP_SOCKET_INVALPARAM			CMPP_ERROR_START+500

#ifdef __cplusplus
}
#endif

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -