⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 aid_func.h

📁 socket编程
💻 H
字号:
#ifndef __aid_func_h
#define	__aid_func_h

#define DATA_PACKAGE	101
#define ENQ_PACKAGE		102
#define OK_PACKAGE		103
#define NG_PACKAGE		104
#define CLEAR_PACKAGE	105

struct PG_HEAD /* both for Client_To_Serve & Serve_To_Serve */
{
	int reqType ; /*DATA_PACKAGE | OK_PACKAGE | NG_PACKAGE */
	int binType ; /* 1: Binary data ; 0 : Text data */
	int reqSize ;
} ;

struct DATA_BIN
{
	int  w_len		;
	char byte[1024] ;
} ;

void TraceLog_recv( struct PG_HEAD	* pg_head , char * p_data) ;

void TraceLog_send( struct PG_HEAD  * pg_head , char * p_data) ;

void TraceLog_str( char * pMsg ) ;

void TraceLog_clear(int binType ) ;

#else

extern void TraceLog_recv( struct PG_HEAD	* pg_head , char * p_data) ;

extern void TraceLog_send( struct PG_HEAD   * pg_head , char * p_data) ;

extern void TraceLog_str( char * pMsg ) ;

extern void TraceLog_clear( ) ;

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -