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
testharn.h
Package: tb_i86_wr_1019_1102. [view]
Upload User: super_houu
Upload Date: 2008-09-21
Package Size: 4099k
Code Size: 2k
Category:
DVD
Development Platform:
Others
- #ifndef _THG_H
- #define _THG_H
- /*******************************************************************************
- * Include Files
- *******************************************************************************/
- #include "string.h"
- /*******************************************************************************
- * Macro Definitions
- *******************************************************************************/
- #define GROUP(c1, c2, c3, c4, c5) ( (long) (
- (c1 - 48) + 50L * (c2 - 48) + 2500L * (c3 - 48) +
- 125000L * (c4 - 48) + 6250000L *(c5 - 48)
- ) )
- #define DECLARE_GROUPFUNC(name) void name(char *cmd, char *options);
- #define DEFINE_GROUPFUNC(name) void name(char *cmd, char *options)
- {
- #define GROUP_SWITCH if ( strcmp(cmd, "") == 0) { return; }
- #define END_GROUPFUNC }
- #define CASE_CMD(CMD) else if ( strcmp(cmd, CMD) == 0 ) {
- #define DEFAULT else {
- #define END_CASE }
- #define OPTIONS options
- /*******************************************************************************
- * Type Definitions
- *******************************************************************************/
- typedef struct {
- long group;
- void (*func)(char*, char*);
- } THGConnection;
- /*******************************************************************************
- * Function Prototypes
- *******************************************************************************/
- void TH_GetParam(char *parstring, char *formatstr, ...);
- SAMP(ErrCode) SAMP(TH_Send)(char *group, char *cmd, char *format, ...);
- SAMP(ErrCode) SAMP(TH_Trace)(char *msg);
- SAMP(ErrCode) SAMP(TH_Init)(void);
- SAMP(ErrCode) SAMP(TH_Term)(void);
- #endif
- /*******************************************************************************
- * End of File
- *******************************************************************************/