VxWorks_使用ftp服务
来源:互联网 发布:知乎朝鲜核中国 编辑:程序博客网 时间:2024/05/20 20:17
kernel configuration中增加FTP Server组件(INCLUDE_IPFTPS);
1. 将Authentication callback routine (FTPS_AUTH_CALLBACK_HOOK)挂到自己的回调函数myAuthenticateCallback;
2. 将FTP initial directory 定义为"/tffs0";将FTP root directory定义为"/";
3. 将install ftp server callback routine (FTPS_INSTALL_CALLBACK_HOOK)定义为TRUE;
将下面的代码copy到usrAppInit.c,放在usrAppInit()前。
#include <iprip.h>
#include <ipftps.h>
int myAuthenticateCallback (Ipftps_session * session,char * password)
{
return 0;
}
使用fileZilla作为FTP客户端登陆,账户密码随便设定。
如果需要密码验证,可以修改myAuthenticateCallback函数如下
int myAuthenticateCallback (Ipftps_session * session,char * password)
{
if ( (strcmp (session->username, "abc") == 0)&& (strcmp (password, "123") == 0))
return 0;
else
return -1;
}
Tftp vxWorks作为服务器端也尝试了一下,包含tftp server组件,TFTP_DIRS设置为”/tffs0”,测试tftp PUT,GET文件成功。
阅读全文
0 0
- VxWorks_使用ftp服务
- VxWorks_使用ftp服务
- 使用vsftpd构建安全的FTP服务
- 使用NAT打造FTP服务新法
- 使用FileZilla Server建立FTP服务
- linux使用vsftpd开启ftp服务
- ubuntu下ftp及ssh服务使用
- ftp服务
- FTP服务
- FTP服务
- ftp服务
- FTP服务
- ftp服务
- FTP服务
- FTP服务
- ftp服务
- ftp服务
- FTP服务
- 第一篇
- 实现基于LNMP的电子商务网站
- 关于串口通信波特率的几点思考
- Angular4学习笔记(七)- ViewChild和ViewChildren
- Rxjava2
- VxWorks_使用ftp服务
- 线段树--codeforces242E XOR on Segment
- Python之join函数
- 从今天开始阅读Java源码吧!
- 微信小程序之swiper轮播图
- Eclipse设置server Locations及getServletContext().getRealPath获取到的工程目录路径
- lvs集群服务的DR模式和NAT模式详解及实验
- MVP+Retrofit+ReJava+Xrecyclerview请求展示数据
- 2017.11.5