在Qt中连接到FTP服务器 [英] Connect to FTP server in Qt

查看:181
本文介绍了在Qt中连接到FTP服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

引用:

我最近所有人都在使用qt中的FTP服务器,然后我连接到FTP,但如果我这样做,则在30秒内没有像下载或上传这样的FTP做任何事情,连接正在变得断开连接。谁可以帮我解决这个问题我该怎么做

HI everyone recently I am working with FTP server in qt, and then I connected to FTP but in 30 second if I do not do anything with FTP like download or upload, connection is becoming disconnection. who can help me what should I do to solve this problem

推荐答案

大多数FTP服务器都有关闭的超时值没有收到请求时的连接。 FTP客户端通常具有保持活动选项,以定义的间隔发送FTP命令(例如,NOOP命令)。所以你应该在你的客户端实现类似的东西。
Most FTP servers have a time out value for closing the connection when no requests are received. FTP clients usually have a keep-alive option to send a FTP command in defined intervals (e.g. the NOOP command). So you should implement something similar in your client.


这篇关于在Qt中连接到FTP服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆