50 lines
986 B
C
50 lines
986 B
C
|
||
|
||
#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
|
||
|