JYDEST.H
上传用户:bjghjy
上传日期:2007-01-07
资源大小:379k
文件大小:1k
- #ifndef _INC_JYDEST
- #define _INC_JYDEST
- #include <time.h>
- /*#define JY_REQ_CHKUSR 1
- #define JY_REQ_CHGPWD 2
- #define JY_REQ_BUYSELL 3
- #define JY_REQ_CANCEL 4
- #define JY_REQ_YECX 5
- #define JY_REQ_CJCX 6
- #define JY_REQ_WTCX 7
- #define JY_REQ_EXIT 8
- */
- typedef struct tag_JyDest
- {
- BYTE reqType;
- char curJys;
- int sd;
- struct sockaddr dest;
- int userId;
- int jyNum;
- int recNum;
- int recCount, aliveCount;
- char gddm[10+1];
- time_t startTime;
- BOOL isReqEnd, isSending;
- //BYTE nparamsCount, sparamsCount;
- //char **psParams;
- //int *pnParams;
- 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);
- int GetJyDestCount(void);
- int AddJyDest(int sd, struct sockaddr *lpdest,
- int reqType, char jys, int recNum, char *lpgddm, int);
- int ChangeJyDest(int sd, LPJY_DEST lpJyDest, int reqType, char jys,
- struct sockaddr *lpdest, int userId, int recNum, int);
- int CheckJyDest(int sd, struct sockaddr *dest,
- int reqType, char jys, char *gddm, int userId, LPJY_DEST*);
- int CreateScanJyDestThread(void);
- void DelJyDeads(void);
- void CheckJyDestEcho(int sd, struct sockaddr *);
- 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, struct sockaddr *, int);
- #endif