YedFtpPipe - Put_File
SINT Put_File(void *pvO,SCHAR *pscNomeFile,SCHAR *pscNomeFileOutput);
The method sends the local file pscNomeFile to remote file pscNomeFileOutput. Both these file names must be completed with path.
For avoiding syncing problems, the method sends the local file pscNomeFile to a temporary remote file called pscNomeFileOutput.tmp. Then, after the right and complete file transmission, it rename this file to the real name pscNomeFileOutput.
pvO is the instance of the object invoking the method.
The method returns YFTSUCCESS in case of right file transmission. In case of error, it returns:
Input buffers are invalid. Maybe NULL, or empty.
Error in writing data to socket.
Timeout error in data reply from child.
In all other cases the method receives a bad response code from child, it returns this code. The meaning of these codes is explained in RFC documents about FTP protocol ( RFC 959 and others ).