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
EnDecode.h
Package: Mir2ExCodev1.rar [view]
Upload User: cydong117
Upload Date: 2009-11-10
Package Size: 638k
Code Size: 1k
Category:
Game Server Simulator
Development Platform:
Visual C++
- #define _DEFBLOCKSIZE 16
- #define _DEFBLOCKSIZE 16
- #define _FEATURESIZE 6
- #define _CHARDESCSIZE 11
- #define _FEATURESIZEEX 4
- typedef struct tag_TDEFAULTMESSAGE
- {
- int nRecog;
- WORD wIdent;
- WORD wParam;
- WORD wTag;
- WORD wSeries;
- } _TDEFAULTMESSAGE, *_LPTDEFAULTMESSAGE;
- typedef struct tag_TSHORTMSSEAGE
- {
- WORD wIdent;
- WORD wMsg;
- } _TSHORTMSSEAGE, *_LPTSHORTMSSEAGE;
- typedef struct tagPACKETMSG
- {
- _TDEFAULTMESSAGE stDefMsg;
- CHAR szEncodeData[MAX_PATH * 4];
- }PACKETMSG, *LPPACKETMSG;
- typedef struct tag_TMSGHEADER
- {
- int nCode;
- int nSocket;
- WORD wUserGateIndex;
- WORD wIdent;
- WORD wUserListIndex;
- WORD wTemp;
- int nLength;
- } _TMSGHEADER, *_LPTMSGHEADER;
- /*typedef struct tagTGateToSvrHeader
- {
- char szPrefix; // Always is '%'
- char szID; // Identifier.
- BYTE btGateIndex; // Gate server index.
- int nSocket; // Socket(owner of msg) in gate server.
- WORD wDataLength; // Length of msg that following header.
- } TGateToSvrHeader, *LPTGateToSvrHeader;
- #define GTS_HEADER_SIZE sizeof(TGateToSvrHeader) */
- void WINAPI fnMakeDefMessage(_LPTDEFAULTMESSAGE lptdm, WORD wIdent, int nRecog, WORD wParam, WORD wTag, WORD wSeries);
- int WINAPI fnEncode6BitBuf(unsigned char *pszSrc, char *pszDest, int nSrcLen, int nDestLen);
- int WINAPI fnDecode6BitBuf(char *pszSrc, char *pszDest, int nDestLen);
- int WINAPI fnEncodeMessage(_LPTDEFAULTMESSAGE lptdm, char *pszBuf, int nLen);
- int WINAPI fnDecodeMessage(_LPTDEFAULTMESSAGE lptdm, char *pszBuf);