关于Idftp下载文件时如何取消下载

mmking33 2005-03-22 01:20:43
IdFTP->Get(),之后,在Onwork事件中处理下载进度条,顺便加一个ProcessMessage()防止程序不响应。现在的问题是下载到一半时如何取消下载?我使用IdFTP->Abort(),会报错“450 error during writing data to connection”。之后ftp连接保持着,但是不能执行任何命令。怎么解决?
...全文
240 14 打赏 收藏 转发到动态 举报
写回复
用AI写文章
14 条回复
切换为时间正序
请发表友善的回复…
发表回复
mmking33 2005-04-08
  • 打赏
  • 举报
回复
就这个?我已经截贴,csdn的问题我怎么知道。不和你一般计较


happyct 2005-04-08
  • 打赏
  • 举报
回复
爷我从来不计较什么分数,可是爷我今天确计较了一下
http://community.csdn.net/Expert/topic/3919/3919966.xml?temp=.442135

爷帮你解决问题,孙字你一分都不给爷

爷我近1个月没来CSDN,这两天来搞了那么多工作,你这五龟确不懂感激,还他奶的象条狗,感觉哪里香往哪里跑!
happyct 2005-04-08
  • 打赏
  • 举报
回复
爷我从来不计较什么分数,可是ye我今天确计较了一下
http://community.csdn.net/Expert/topic/3919/3919966.xml?temp=.442135

爷帮你解决问题,孙字你一分都不给爷

ye我近1个月没来CSDN,这两天来搞了那么多工作,你这五龟确不懂感激,还他奶的象条狗,感觉哪里香往哪里跑!
happyct 2005-04-08
  • 打赏
  • 举报
回复
ye我心情本来不错,可是你这鸟人他奶的不识相。

mmking33 2005-04-08
  • 打赏
  • 举报
回复
马里个比,哪里得罪你了,比样嘴巴干净点
happyct 2005-04-08
  • 打赏
  • 举报
回复
我会,可是不想告诉你这个鸟人,操
surstar 2005-04-01
  • 打赏
  • 举报
回复
帮你UP ,
mmking33 2005-04-01
  • 打赏
  • 举报
回复
100分的帖,up者第11-15人每人20分,帮忙看看,over
mmking33 2005-03-23
  • 打赏
  • 举报
回复
如何能在abor以后重新接受客户端的ftp命令请求?
大致是以下的一个出错过程。Abor以后就出错了
STATUS:> Connecting data socket...
150 Accepted data connection
COMMAND:> ABOR
STATUS:> Received 0 bytes, Abnormal termination
COMMAND:> CWD /www
226-Options: -l
226 8 matches total
STATUS:> Retrieving directory listing...
COMMAND:> PASV
226 Since you see this ABOR must've succeeded
STATUS:> Error opening data socket
STATUS:> Receiving: cgiperl.htm --> c:\junk\cgiperl.htm
COMMAND:> PASV
250 OK. Current directory is /www
STATUS:> Error opening data socket
STATUS:> Failed to receive cgiperl.htm


mmking33 2005-03-23
  • 打赏
  • 举报
回复
but forces the data connection to be closed.
如何重新建立起这个dataconnection?
感谢楼上的
我不懂电脑 2005-03-23
  • 打赏
  • 举报
回复
Abort is a procedure that instructs the FTP server to interrupt the previous FTP service command, and any associated transfer of data. Abort does not affect the control connection for the FTP client, but forces the data connection to be closed.
mmking33 2005-03-23
  • 打赏
  • 举报
回复
如何取消下载还是没有解决。一取消就报错,期待达人
myy 2005-03-22
  • 打赏
  • 举报
回复
顺便加一个ProcessMessage()防止程序不响应
----------------

用不着,有现成的TidAntiFreeze
Friecin 2005-03-22
  • 打赏
  • 举报
回复
try
{
NMFTP1->Abort();
NMFTP1->Disconnect();
}
catch(... )
{
}

13,826

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder相关内容讨论区
社区管理员
  • 基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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