39 lines
745 B
C
39 lines
745 B
C
|
||
|
||
#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
|
||
|