FtpPut.html 985 B

12345678910111213141516171819202122232425262728293031323334
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
  2. <html>
  3. <head>
  4. <title>FtpPut</title>
  5. <link rel="stylesheet" type="text/css" href="doc.css">
  6. </head>
  7. <body>
  8. <h1>FtpPut</h1>
  9. <p>Send a file to the remote system.</p>
  10. <h2>SYNOPSIS</h2>
  11. <pre>
  12. #include &lt;ftplib.h&gt;
  13. int FtpPut(const char *input, const char *path, char mode, netbuf *nControl);
  14. </pre>
  15. <h2>PARAMETERS</h2>
  16. <dl>
  17. <dt><b>input</b></dt>
  18. <dd>Specifies the name of a local file to be transfered to the
  19. server. If specified as NULL file data will be read from stdin.</dd>
  20. <dt><b>path</b></dt>
  21. <dd>Specifies the name to be given to the file on the remote
  22. system.</dd>
  23. <dt><b>mode</b></dt>
  24. <dd>Specifies the transfer mode as FTPLIB_ASCII or
  25. FTPLIB_IMAGE.</dd>
  26. <dt><b>nControl</b></dt>
  27. <dd>A handle returned by <a href="FtpConnect.html">FtpConnect()</a>.</dd>
  28. </dl>
  29. <h2>DESCRIPTION</h2>
  30. <p>FtpPut() transfers a local file to the remote system.</p>
  31. <h2>RETURN VALUE</h2>
  32. <p>Returns 1 if successful or 0 on error.</p>
  33. </body>
  34. </html>