YedFtpPipe - Put_File

NAME:
Put_File

SYNOPSIS:
SINT Put_File(void *pvO,SCHAR *pscNomeFile,SCHAR *pscNomeFileOutput);

DESCRIPTION:
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.

RETURN VALUE:
The method returns YFTSUCCESS in case of right file transmission. In case of error, it returns:

YFTINVALIDPARAM
Input buffers are invalid. Maybe NULL, or empty.

YFTWRITERROR
Error in writing data to socket.

YFTNOREPLY
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 ).


http://yed.sourceforge.net