csgpapi.h
来自「公司业务而自己写的网关通讯程序,网关是平台的.不过对OCI有兴趣的不妨看看. O」· C头文件 代码 · 共 44 行
H
44 行
/********************************************************************
ModuleName: CSGPAPI
FileName: csgpapi.h
DESCRIPTION: The Function ProtoType Definition Of API
History:
Date Version Modifier Activies
2004/02/27 1.0 Zhao Jianlong Create
********************************************************************/
#ifndef _CSGPAPI_H_
#define _CSGPAPI_H_
/*******************
The Error Code Definition
*******************/
#define CSGP_OK 0
#define CSGP_TIMEOUT 1
#define CSGP_ERR_READCONFIGFILE 1201
#define CSGP_ERR_CONFIGPARA 1202
#define CSGP_ERR_CREATETHREAD 1203
#define CSGP_ERR_LOGIN 1211
#define CSGP_ERR_CONNECTFAIL 1212
#define CSGP_ERR_SENDSRVRESP 1213
#define CSGP_ERR_RECVBUFFERSIZE 1214
/**********************************
The Function ProtoType Definition
**********************************/
//读取配置文件,进行初始化操作
int CSGP_ReadConf(char* filename);
//接收声讯平台发起的业务请求数据
int ReadSrvReq( char* ctrlMsg, char* subCode,
char* contenetMsg, int* msgLen,
int timeOut);
//发送业务响应数据
int SendSrvResp(char* ctrlMsg, char* contenetMsg, int MsgLen);
#endif
;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?