FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Problems with tIpClientFtp class - xharbour rev 9656
Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM

Problems with tIpClientFtp class - xharbour rev 9656

Posted: Mon Jan 21, 2013 03:38 PM

Hi all,
I always succesfully used the tIpClientFtp xharbour class to manage ftp connections.
Now I updated my xharbour 1.2.1 from rev. 6717 to rev. 9656 provided with FWH Dec 2012 and any ftp connection doesn't runs anymore,
for example, this function I made to delete a remote file require now 20 second instead of the 2-3 with the previous xHarbour version.
Any ideas ? Thanks in advance.


FUNCTION FtpEraseFile(cFtpSite,cFtpUser,cFtpPassword,cFtpFileToDelete)

local cUrl,oFtp,aDirs
local lTrace

lTrace:=.f.

cFtpUser:=charrepl("@",@cFtpUser,"+")
cUrl:="ftp://"+cFtpUser+":"+cFtpPassword+"@"+cFtpSite
oFtp:=tIPClientFtp():New(cUrl,lTrace)
oFtp:nConnTimeout:=60000
if .not. oFtp:open()
msginfo("ftp error "+oFtp:LastErrorMessage())
return(.f.)
endif

oFtp:dele(cFtpFileToDelete)
oFtp:Close()
RETURN .t.

Best Regards,



Marco Turco

SOFTWARE XP LLP
Posts: 1956
Joined: Fri Oct 07, 2005 07:08 PM

Re: Problems with tIpClientFtp class - xharbour rev 9656

Posted: Sat May 15, 2021 01:16 AM

Have you managed to solve it?

FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/

Continue the discussion