commCPU_SUPV/code/user/inc/tool_scanip.h
2025-04-30 16:24:29 +08:00

39 lines
745 B
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef TOOL_SCANIP_123_INCLUDED
#define TOOL_SCANIP_123_INCLUDED
#include "glbtypes.h"
#ifdef __cplusplus
extern "C" {
#endif
/************************************************************************/
//扫描IP时本地绑定IP和端口
#define SCAN_LOCAL_IP "0.0.0.0"
//修改为1个未申请的端口
#define SCAN_LOCAL_PORT 8003
#define SCAN_REMOTE_IP "255.255.255.255"
#define SCAN_REMOTE_PORT 7000
ST_RET tool_scanip_init( void );
ST_RET tool_scanip_release( void );
ST_RET tool_scanip_handle_send( ST_UCHAR devAddr, ST_UCHAR devFun, ST_UINT32 dlqNo, ST_UCHAR frequence );
ST_RET tool_scanip_handle_deal( ST_VOID );
/************************************************************************/
#ifdef __cplusplus
}
#endif
#endif