如何判断FTp是否连接成功?

weixin_38055888 2019-09-19 06:24:08
int QFtp::connectToHost ( const QString & host, quint16 port = 21 )The function does not block and returns immediately. The command is scheduled, and its execution is performed asynchronously. The function returns a unique identifier which is passed by commandStarted() and commandFinished().是说id不会马上return回来么?那我怎么判断是否连接成功了?而且就是返回了那我得到什么样的数算是连接成功了呢?
...全文
478 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
山鸟同学 2021-06-17
  • 打赏
  • 举报
回复

抓包 三次握手啊

433

社区成员

发帖
与我相关
我的任务
社区描述
其他技术讨论专区
其他 技术论坛(原bbs)
社区管理员
  • 其他技术讨论专区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧