chatpublic.h
上传用户:maryhy001
上传日期:2007-05-02
资源大小:2317k
文件大小:1k
- //chatPublic.h --- Net chating public header file.
- //
- #ifndef _NETCHAT_PUBLIC_H
- #define _NETCHAT_PUBLIC_H
- #define SIZE_PKTYPE 1
- #define SIZE_AGENTID 8
- #define SIZE_HADPTRT 8
- #define SIZE_BUFFER (MAX_NETCHAT_PACKET - (SIZE_PKTYPE+SIZE_AGENTID+SIZE_HADPTRT))
- //chating package type.
- typedef enum {CPT_LOGIN = 0, CPT_LOGOFF = 1,
- CPT_MSGTXT = 2, CPT_PROBE = 3,
- CPT_RESPONSE = 4};
- //chating pakcage data type.
- typedef struct
- {
- char pktype[SIZE_PKTYPE];
- char agentid[SIZE_AGENTID];
- char headportrait[SIZE_HADPTRT];
-
- char buf[SIZE_BUFFER];
-
- }CHATINGPACKAGE, *LPCHATINGPACKAGE;
- #endif //!_NETCHAT_PUBLIC_H