www.pudn.com > vc-network-communication.rar > Common.h


#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