www.pudn.com > goodchessGame.zip > Pakage.h


#pragma once 
 
enum GameType { 
	UNDETERMINED, 
	MARRIAGE, 
	CALLBREAK, 
	HEARTS, 
	TWENTYNINE, 
	POPLU 
}; 
 
enum Service 
{ 
  CHKGAME,	// Same game? 
  CHKNAMES,	// Check names 
  REQ,	// Request 
  READYTODEALAGAIN 
}; 
 
 
#pragma pack(1) 
 
struct PACKET 
{ 
  short sService;	// => 2 bytes (the service requested/packet type) 
  short sGameType;	// => 2 bytes (the type of the game) 
  unsigned int nBitmapIndex;	// => 4 bytes(the card bitmap index) 
  char sPlayerName[11];	// => 11 bytes(the name of the player) 
  char sData[45]; 
}; 
 
union DataPacket 
{ 
  PACKET pkt; 
  char pktStr[64]; 
}; 
 
#pragma pack()