Common.h
资源名称:网络视频电话系统.rar [点击查看]
上传用户:oldpeter23
上传日期:2013-01-09
资源大小:1111k
文件大小:1k
源码类别:
IP电话/视频会议
开发平台:
Visual C++
- #ifndef _COMMON_H_
- #define _COMMON_H_
- #define CMD_LOGIN
- #define CMD_QUERY_PERSONAL_INFO
- #define CMD_QUERY_LOGON_INFO
- #define CMD_TEXT_MSG
- #define CMD_REQUIRE_TALK
- #define CMD_ACCEPT_TALK
- #define CMD_REFUSE_TALK
- #define CMD_HANGUP_TALK
- typedef struct
- {
- char Flag[2];
- BYTE nCheckSum;
- BYTE nId;
- BYTE nCmd;
- unsigned short nDataSize;
- }CMD_HEADER;
- typedef struct
- {
- CMD_HEADER CmdHeader;
- char Data[4000];
- }CMD_PACK;
- typedef struct
- {
- char szName[16];
- UINT uNum;
- char szCamp[16];
- char szCollege[16];
- char szAddr[50];
- char szMemo[200];
- }PERSONAL_INFO;
- typedef struct
- {
- LONG uIP;
- unsigned short uPort;
- UINT uPassWord;
- }LOGON_INFO;
- #endif