FtpWrite.html 871 B

123456789101112131415161718192021222324252627282930313233
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
  2. <html>
  3. <head>
  4. <title>FtpWrite</title>
  5. <link rel="stylesheet" type="text/css" href="doc.css">
  6. </head>
  7. <body>
  8. <h1>FtpWrite</h1>
  9. <p>Write data to a remote file.</p>
  10. <h2>SYNOPSIS</h2>
  11. <pre>
  12. #include &lt;ftplib.h&gt;
  13. int FtpWrite(void *buf, int len, netbuf *nData);
  14. </pre>
  15. <h2>PARAMETERS</h2>
  16. <dl>
  17. <dt><b>buf</b></dt>
  18. <dd>A buffer containing the data to be sent to the remote
  19. file.</dd>
  20. <dt><b>len</b></dt>
  21. <dd>The number of bytes to be sent from 'buf'.</dd>
  22. <dt><b>nData</b></dt>
  23. <dd>A handle returned by <a href="FtpAccess.html">FtpAccess()</a>.</dd>
  24. </dl>
  25. <h2>DESCRIPTION</h2>
  26. <p>FtpWrite() sends data to a remote file. If the file was
  27. accessed in record mode, the necessary conversions are
  28. performed.</p>
  29. <h2>RETURN VALUE</h2>
  30. <p>Returns the number of bytes sent from the user's buffer or -1 on
  31. error.</p>
  32. </body>
  33. </html>