LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

INET_FTPSendFile() fails after INET_FTPLoginEx() connects to FTP Server ?

INET_FTPSendFile() fails to connect to port (per FTP Server log) after INET_FTPLoginEx() connects to FTP Server successfully?
INET_FTPSendFile() returns a TIMEOUT error.  
 
According to the FTP Server logs, INET_FTPLoginEx() connects to the correct IP for my Server, but the prefix (IP address of Server) is incorrect when the INET_FTPSendFile() attempts to connect to a port.  Any ideas?
0 Kudos
Message 1 of 3
(3,121 Views)

Hello, i'm trying to send a file with InetFTPSendFile(), but it doesn't work (Error -11). The connnection with InetFTPLogin() is good and i use InetFTPSetPassiveMode (FTPMoneyline, 1).

Have you resolved your problem?

Thanks

0 Kudos
Message 2 of 3
(3,106 Views)

Hi, 

The question:    Have you resolved your problem?  Yes and No

I use an application called Windows FTP Server to simulate my FTP server test case.  This is the easiest one to configure.  I set this up on the PC (Windows 2000) in my cube.

I need to execute FTP uploads from a Windows 2000 server.  I manually execute an FTP Send through a DOS command window successfully to make sure that the server in my cube is working.

When I use the CVI  INET_FTPSendFile() after a successful connection, I get a time out error.  According to the server logs the CVI port connection gets hosed.

My work around for now is to build a sequence of DOS command strings to execute the FTP transaction and launch them via system calls.  I like this solution too because I get a lot of messages without additional effort to append to my log files.

I am also looking into using Windows SDK API FTP calls to solve this problem, but CVI would be much easier if anybody can get this stuff to work.

Is InetFTPSetPassiveMode () a CVI function?  This one is not in my list.

Thanks,

robskii

 

0 Kudos
Message 3 of 3
(3,092 Views)