Home/Support/Support Forum/how to determine if an FTP "put" competed the transfer succesfully
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

how to determine if an FTP "put" competed the transfer succesfully

0 votes
I am using the connect ME 9210 with NET+OS 7.4.2.

I am creating a fairly simple FTP to serial gateway application.
This application uses FSRegisterSTOR to register a callback function which is called repeatedly for any file uploaded to the digi module via and FTP put command. My callback function save the data sent to it in ram and launches a thread to take the data stored and send it out the serial port.

All of the above is working fine when there are no errors. The problem I see is if there is an error in the FTP put (lost connection, or long delay before the file is completed) I can't see how I can trap this error.

My question is how do I determine if a FTP file Put completed successfully or there was an error/break in the transfer?
asked Nov 18, 2010 in NET+OS by pBoucher New to the Community (9 points)
recategorized Dec 5, 2013 by tuxembb

Please log in or register to answer this question.

1 Answer

0 votes
Found it.

See NetOS74\src\bsp\fsintf\ftpsvrfs.c
int FS_DataSessionClosed(char * argp, unsigned long handle)
answered Dec 10, 2010 by pBoucher New to the Community (9 points)
...