JYDEST.H
上传用户:bjghjy
上传日期:2007-01-07
资源大小:379k
文件大小:1k
- #ifndef _INC_JYDEST
- #define _INC_JYDEST
- #include <time.h>
- #ifdef _MSDOS
- #ifndef BYTE
- #define BYTE char
- #endif
- #ifndef BOOL
- #define BOOL char
- #endif
- #ifdef FAR
- #define FAR far
- #endif
- #endif
- typedef struct tag_JyDest
- {
- BYTE reqType;
- char curJys;
- short zqsid;
- int sd;
- int userId;
- int jyNum;
- int recNum,recNum1;
- int recCount, aliveCount;
- char gddm[10+1],DesKey[8+1],jymm[7+1];
- int jyzh;
- double zjye,kyje;
- time_t startTime;
- BOOL isReqEnd, isSending;
- struct tag_JyDest *lpNext;
- }JY_DEST, *LPJY_DEST;
- typedef struct tag_JyDests
- {
- int destCount;
- BOOL isChanging;
- LPJY_DEST lpDestHead;
- }JY_DESTS, *LPJY_DESTS;
- extern JY_DESTS jy_dests;
- BOOL JyDestInit(void);
- void JyDestExit(void);
- LPJY_DEST GetJyDest(char *lpgddm);
- LPJY_DEST GetJyDestBySd(int sd);
- LPJY_DEST GetFirstIdelRec(void);
- int GetJyDestCount(void);
- LPJY_DEST AddJyDest(int sd,int reqType, char jys, int recNum,
- char *lpgddm, int jynum,int zqsid);
- int ChangeJyDest(int sd, LPJY_DEST lpJyDest, int reqType,
- char jys, int userId, int);
- int CheckJyDest(int sd, int reqType, char jys, char *gddm,
- int userId, LPJY_DEST*);
- int CreateScanJyDestThread(void);
- void DelJyDeads(void);
- void CheckJyDestEcho(int sd);
- int JyDest_ChkUsr(LPJY_DEST);
- int JyDest_ChgPwd(LPJY_DEST);
- int JyDest_BuySell(LPJY_DEST);
- int JyDest_Cancel(LPJY_DEST);
- int JyDest_Yecx(LPJY_DEST);
- int JyDest_Cjcx(LPJY_DEST);
- int JyDest_Wtcx(LPJY_DEST);
- int Jy_SendRet(int sd, char, char, int);
- #endif