TFTP vs. TFTPCLIENT

TFTP vs. TFTPCLIENT

Postby MichaelMo » Tue Dec 01, 2009 4:12 pm

Does the TFTP object allow for the uploading and downloading of files, or can I only do that via the tFTPClient object? I tried oftp:ftpputfile(file_name) and oftp:ftpgetfile(file_name) with TFTP but it doesn't recognize these methods.
MichaelMo
 
Posts: 55
Joined: Thu Feb 15, 2007 1:35 am

Re: TFTP vs. TFTPCLIENT

Postby MichaelMo » Tue Dec 01, 2009 7:16 pm

When trying to create an instance of tFtpClient, I get the following error message:

--------------------Configuration: ocw - Debug--------------------
Harbour 1.0.1dev Intl. (Rev. 9361)
Copyright (c) 1999-2008, http://www.harbour-project.org/
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
ftp.c:
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external '_HB_FUN_TCTRLSOCKET' referenced from C:\FWH\LIB\FIVEH.LIB|TFtpCli
ocw.EXE - 1 error(s), 0 warning(s)

What am I missing? FYI, there is no such error message in the TFTP class, but I can't figure out how to send or receive a file with TFTP.
MichaelMo
 
Posts: 55
Joined: Thu Feb 15, 2007 1:35 am

Re: TFTP vs. TFTPCLIENT

Postby MichaelMo » Wed Dec 02, 2009 6:27 pm

Bump....

I need some help resolving this problem. I'm fine with using the TFtpCli object, but I can't use the object due to the following error.

Error: Unresolved external '_HB_FUN_TCTRLSOCKET' referenced from C:\FWH\LIB\FIVEH.LIB|TFtpCli
MichaelMo
 
Posts: 55
Joined: Thu Feb 15, 2007 1:35 am

Re: TFTP vs. TFTPCLIENT

Postby James Bott » Wed Dec 02, 2009 8:27 pm

TCTRLSOCKET

This is a class in the file TCTRLSOCK.PRG. It should already be in one of the FW libs. Perhaps your version of FW is older? Check for the file in FW\SOURCE\CLASSES. Mine is dated 10/12/2008.

James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: TFTP vs. TFTPCLIENT

Postby MichaelMo » Wed Dec 02, 2009 9:04 pm

I believe my version is from January of 09. FWH(9-01) is the name of the install file dated January 26th of this year.
MichaelMo
 
Posts: 55
Joined: Thu Feb 15, 2007 1:35 am

Re: TFTP vs. TFTPCLIENT

Postby James Bott » Wed Dec 02, 2009 10:08 pm

Then you should have the PRG. Perhaps it didn't get linked into the FW libs for some reason.

Try compiling and linking the PRG into your EXE.

James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: TFTP vs. TFTPCLIENT

Postby MichaelMo » Wed Dec 02, 2009 10:55 pm

Well James, at least it compiled with that class added to my executable. That's progress. Thank you very much. I'll see how it goes from here. :)
MichaelMo
 
Posts: 55
Joined: Thu Feb 15, 2007 1:35 am

Resolved......

Postby MichaelMo » Thu Dec 03, 2009 1:47 am

My bad....

I kept trying to use the FtpGetFile/FtpSendFile functions as *METHODS* of the oFtp object. Once I finally realized I could call the functions directly rather than trying to call them as a methods of the object, it worked just fine with the oFtp class. Thanks again for your suggestions James. I appreciate the help. For anyone interested, here was the function that works:


FTPGetFile(oFtp:hFtp,fsource,fdest,0,0)
MichaelMo
 
Posts: 55
Joined: Thu Feb 15, 2007 1:35 am

Re: TFTP vs. TFTPCLIENT

Postby Antonio Linares » Thu Dec 03, 2009 7:31 am

Michael,

Please review these working examples:
FWH\samples\FtpDir.prg and FWH\samples\gallery\icopyfil\copyfil.prg
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 63 guests