/******************************************************\
*
* DMY_FTP.fll - Visual FoxPro API routine.
*
* Copyright (c) D.M.Y SmartWare Inc.
*	
*	Author: M.Y. Dong
*	
*	Contact: jeffer@south-bridge.com
*
*	You can simply add these link library functions  into your Visual Foxpro 
*	applications. The FTP Link library can connect to any FTP server and 
*	return files list, download files, upload files within any FoxPro program. 
*	Just save the 'DMY_ftp.fll' with your application , open this external API 
*	library file in your codes. Then you can directly call all functions 
*	provided by this package. No installation and It is FREE!
*	
*	
\******************************************************/


SEND_TO_FTP(szLocalFile,szRemoteFile,szFTPsite,szUserName,szPassWord,nPort)
//	
//	sample:
		SEND_TO_FTP("c:\temp\t.zip","tt.zip","ftp.testsite.com","anonymous","guest@unknown.com")
//	sample:
		SEND_TO_FTP("c:\temp\t.zip","/johnson/tt.zip","200.100.10.100","username","*******",22)
//	sample:
		SEND_TO_FTP("c:\temp\t.zip","upload/tt.zip","ftp.testsite.com","username","*******",22)
//

Return Value
	integer
	1	done
	-5	parameter wrong
	-1	No internet access, please try it again.
	-2	Can not connect to FTP, check your userID/password.
 

GET_FROM_FTP(szLocalFile,szRemoteFile,szFTPsite,szUserName,szPassWord,nPort)
//	
//	sample:
		GET_FROM_FTP("c:\temp\t.zip","tt.zip","ftp.testsite.com","anonymous","guest@unknown.com")
//	sample:
		GET_FROM_FTP("c:\temp\t.zip","download/tt.zip","ftp.testsite.com","username","*******",22)
//	sample:
		GET_FROM_FTP("c:\temp\t.zip","/jason/tt.zip","200.100.10.100","username","*******",22)
//
Return Value
	integer
	1	done
	-5	parameter wrong
	-1	No internet access, please try it again.
	-2	Can not connect to FTP, check your userID/password.
	-3	Can not find the speicfy file on FTP.


LOOKUP_FTP(szRemotePath,szFileFilter,szFTPsite,szUserName,szPassWord,nPort,@RecFieldName)

** 	'RecFieldName'	- is a char type field of current opened table. if the call succeed, the files' name
			will be filled into this field of current opened table.
//	
//	sample:
		LOOKUP_FTP("/pub/win32","*.txt","ftp.testsite.com","anonymous","guest@unknown.com",21,@filename)
//	sample:
		LOOKUP_FTP("remote/download","","200.100.10.100","username","*******",22,@filename)
//	sample:
		LOOKUP_FTP("/tracey/download","","ftp.testsite.com","username","*******",22,@filename)
//
Return Value
	integer
	>=0	number of files found
	-5	parameter wrong
	-1	No internet access, please try it again.
	-2	Can not connect to FTP, check your userID/password.
	-3	Can not find the speicfy file on FTP.
