Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
protocol.h
Package: SwordOnline.rar [view]
Upload User: dzyhzl
Upload Date: 2019-04-29
Package Size: 56270k
Code Size: 1k
Category:
Game Server Simulator
Development Platform:
C/C++
- /********************************************************************
- created: 2003/02/16
- file base: protocol
- file ext: h
- author: liupeng
- purpose: Define protocol for we can transmit some correct data
- *********************************************************************/
- #ifndef __INCLUDE_PROTOCOL_H__
- #define __INCLUDE_PROTOCOL_H__
- //[ Only for debug, delete it if you release the lib
- #define NETWORK_DEBUG
- //]
- #pragma pack(1)
- typedef struct tagPackHeader
- {
- BYTE cPackBeginFlag; // 0xBF
- WORD wDataLen; // [PACK_HEADER] [DATA] /* wDataLen == sizeof(DATA) */
- WORD wCRCData; // [cPackBeginFlag | cPackEndFlag] | [wDataLen]
- BYTE cPackEndFlag; // 0xEF
- }PACK_HEADER, NEAR *PPACK_HEADER, FAR *LPPACK_HEADER;
- #define PACK_BEGIN_FLAG 0xBF
- #define PACK_END_FLAG 0xEF
- #define _private_make_crc_data( x, y, z ) ( ( x << 8 | y ) | z )
- #define MAKE_CRC_DATE( x, y, z ) _private_make_crc_data( x, y, z )
- #define PACK_HEADER_LEN sizeof( PACK_HEADER )
- #pragma pack()
- #endif //__INCLUDE_PROTOCOL_H__