博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
apache的org.apache.commons.net包 下载文件问题总结
阅读量:4052 次
发布时间:2019-05-25

本文共 811 字,大约阅读时间需要 2 分钟。

enterLocalActiveMode,enterRemoteActiveMode,enterRemotePassiveMode。

我的理解大概是这样的
enterLocalPassiveMode:设置客户端PASV模式
static int PASSIVE_LOCAL_DATA_CONNECTION_MODE
enterLocalActiveMode:设置客户端PORT模式
static int ACTIVE_LOCAL_DATA_CONNECTION_MODE
enterRemoteActiveMode:server to server
static int ACTIVE_REMOTE_DATA_CONNECTION_MODE
requiring the one(client) connect to the other server's data port to initiate a data transfer.
enterRemotePassiveMode:server to server
static int PASSIVE_REMOTE_DATA_CONNECTION_MODE
requiring the other server to connect to the first server's data port to initiate a data transfer
对FTP协议了解的不太清楚是一个很大的原因,有时间要看看FTP协议的内容了。
查了一些资料:
FTP传输有两种模式:主动模式(PORT)和被动模式(PASV)
主动模式:客户端主动连服务器端;端口用20
被动模式:服务器端连客户端;随机打开一个高端端口(端口号大于1024)
小提示:有防火墙用户不能使用主动模式,这是因为防火墙不允许来自网外的主动连接,所以用户必须同使用被动模式。
到这里上面遇到的问题也就比较清晰了。

转载地址:http://cctci.baihongyu.com/

你可能感兴趣的文章
poj 3628 Bookshelf 2(dfs, 01背包)
查看>>
poj 3211 Washing Clothes(01背包)
查看>>
poj 1976 A Mini Locomotive (dp 二维01背包)
查看>>
poj 2923 Relocation (枚举+背包 | 状态压缩+01背包)
查看>>
poj 1837 Balance (dp 01背包)
查看>>
poj 1948 Triangular Pastures (dp 二维01背包)
查看>>
hdu 2639 Bone Collector II (dp 01背包求第k优解)
查看>>
HDU 2126 Buy the souvenirs (dp 二维01背包)
查看>>
hdu 4558 剑侠情缘(dp, 西山居复赛1第2题)
查看>>
POJ 2184 Cow Exhibition (dp 转换01背包)
查看>>
poj 2063 Investment (dp 完全背包)
查看>>
poj 2392 Space Elevator(dp 排序+多重背包)
查看>>
Android 3.0以上UI主线程进行http通信
查看>>
Spring MVC @ResponseBody 返回中文乱码问题
查看>>
junit学习笔记(一):JUnit的安装和测试原则
查看>>
junit学习笔记(二):hamcrest和TestSuit
查看>>
junit学习笔记(三):测试驱动开发和cobertura框架
查看>>
poj 1185 炮兵阵地(经典状态压缩dp)
查看>>
poj 2411 Mondriaan's Dream(状态压缩dp)
查看>>
HDU 4628 Pieces(状态压缩dp)
查看>>