📄 lu62.h
字号:
#ifndef _LU62_H#define _LU62_H/**************************//* defined function code *//**************************/#define LU_ALLOC 0x01#define LU_ACCEPT 0x02#define LU_REQUEST_TO_SEND 0x03#define LU_PREPARE_TO_RECEIVE 0x04#define LU_SEND 0x11#define LU_RECEIVE 0x21#define LU_FREE 0x31#define LU_NULL 0xFF#define LU_SENDTRUE 0x41/**********************//* defined error code *//**********************/#define LU_OK 0x00#define LU_TIMER_ERROR 0x01#define LU_INIT_ERROR 0x02#define LU_STPN_ERROR 0x03#define LU_SSL_ERROR 0x04#define LU_ALLC_ERROR 0x05#define LU_SST_ERROR 0x06#define LU_SND_ERROR 0x07#define LU_RCV_ERROR 0x08#define LU_RTS_ERROR 0x09#define LU_PTR_ERROR 0x0A#define LU_CFM_ERROR 0x0B#define LU_CFMD_ERROR 0x0C#define LU_DEAL_ERROR 0x0D#define LU_SDT_ERROR 0x0E#define LU_STATUS_ERROR 0x0F#define LU_ALLOC_ERROR 0x10#define LU_SENDWITHCONF_ERROR 0x20#define LU_RECEIVE_ERROR 0x30#define LU_FREE_ERROR 0x40#define LU_SET_ERROR 0x50#define LU_ACCP_ERROR 0x60#define LU_ARG_ERROR 0xF0/**********************************************//* Define for old verion luapi */#define SetSendState(tranno, convid) LUFunction(LU_NULL)#define receive_allocate(tpn,rc,sl,ct,uid,rtp,mod,rtc,rts) LUFunction(LU_NULL)#define lu62logon(convid) LUFunction(LU_ACCEPT)#define lu62quit(tranno) LUFunction(LU_NULL)#define lu62send(tranno,convid,datastring,datalen) LUFunction(LU_SEND,&datalen,datastring)#define lu62rece(tranno,convid,dataptr,reqlen) LUFunction(LU_RECEIVE,&reqlen,dataptr)#define lu62endcR(tranno,convid) LUFunction(LU_FREE)/**********************************************/int LUFunction(int FuncCode, ...);/*************************************************************************int LUFunction(int LU_ALLOC, char *SideInfo, char *TPName, char *ModeName, char *PLUName);int LUFunction(int LU_ACCP);int LUFunction(int LU_SEND, int *DataLength, char *DataBuffer);int LUFunction(int LU_RECEIVE, int *DataLength, char *DataBuffer);int LUFunction(int LU_FREE);int LUFunction(int LU_ERRMSG, int ErrCode, char *ErrMsg);**************************************************************************/char *LUErrMsg(int ErrCode);#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -