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

50 lines
986 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 TFTP_TCP_CLIENT_123_INCLUDED
#define TFTP_TCP_CLIENT_123_INCLUDED
#include "glbtypes.h"
#ifdef __cplusplus
extern "C" {
#endif
/************************************************************************/
//扫描IP时本地绑定IP和端口
#define TFTP_TCP_SERVER_PORT 2400
#ifdef VXWORKS
//接收文件目录
#define TFTP_TCP_CLIENT_PATH_RECV "/tffs0/cfg/"
//发送文件目录
#define TFTP_TCP_CLIENT_PATH_SEND "/tffs0/FILESEND/"
#else
//接收文件目录
#define TFTP_TCP_CLIENT_PATH_RECV "./cfg/"
//发送文件目录
#define TFTP_TCP_CLIENT_PATH_SEND "./FILESEND/"
#endif
//发送数据的超时时间
#define TFTP_TCP_CLIENT_SEND_TIMEOUT (6*1000)
//接收命令的超时时间
#define TFTP_TCP_CLIENT_RECV_TIMEOUT (6*1000)
ST_RET tftp_tcp_client_init( ST_CHAR *connectIp );
ST_RET tftp_tcp_client_release( ST_VOID );
ST_RET tftp_tcp_client_send_file( const ST_CHAR *fileName );
/************************************************************************/
#ifdef __cplusplus
}
#endif
#endif