aid_func.h

来自「socket编程」· C头文件 代码 · 共 42 行

H
42
字号
#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 + =
减小字号Ctrl + -
显示快捷键?