I’m using the FTP Client API call to FCPutData to store data on a remote host. Frequently FCPutData fails (return=-1) if the parameter ‘last’ is set. What could cause this and how to prevent it? I’m using NetOS6.0. Thanks for any suggestion. Thomas
More information about this: Often FCPutdata(NAHandle h, char *buffer, int len, int flag) returns indicating that the number of bytes actually sent is smaller than the number of bytes to send. That seems to be no problem when “flag” was not set (not final call). The data can just be re-sent. But if “flag” was set (final call). What should be done then? Should FCPutdata called again? A second call with flag=1? It always seems to fail. Thomas