用Tidtfp控件进行文件上传所碰到的问题
利用Tidtfp进行文件上传
idftp:=Tidftp.Create(self);
idftp.Host := xxx.xxx.xxx.xxx;
idftp.Port := 21;
idftp.Username := 'xxx';
idftp.Password := 'xxx';
idftp.Connect(true);
idftp.Login;
idftp.Put(参数1,参数2,false);
第一次执行可以成功完成上传,第二次执行则报错,如下:
socket error #10048
Address already in use
是Tidtfp哪里的设置还有问题吗?