FtpSizeLong.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
  2. <html>
  3. <head>
  4. <title>FtpSizeLong</title>
  5. <link rel="stylesheet" type="text/css" href="doc.css">
  6. </head>
  7. <body>
  8. <h1>FtpSizeLong</h1>
  9. <p>Determine size of remote file.</p>
  10. <h2>SYNOPSIS</h2>
  11. <pre>
  12. #include &lt;ftplib.h&gt;
  13. int FtpSize(char *path, unsigned long long *size, char mode, netbuf *nControl);
  14. </pre>
  15. <h2>PARAMETERS</h2>
  16. <dl>
  17. <dt><b>path</b></dt>
  18. <dd>Name of a file on the remote server.</dd>
  19. <dt><b>size</b></dt>
  20. <dd>A pointer to an unsigned 64 bit integer where the size will be returned.</dd>
  21. <dt><b>mode</b></dt>
  22. <dd>Specifies the transfer mode as FTPLIB_ASCII or
  23. FTPLIB_IMAGE.</dd>
  24. <dt><b>nControl</b></dt>
  25. <dd>A handle returned by <a href="FtpConnect">FtpConnect()</a>.</dd>
  26. </dl>
  27. <h2>DESCRIPTION</h2>
  28. <p>FtpSize() attempts to determine the size of a remote file.</p>
  29. <h2>RETURN VALUE</h2>
  30. <p>If a good response is received and the size is successfully
  31. parsed out of the result, 1 is returned. Otherwise, 0 is
  32. returned.</p>
  33. <p>Some servers may not support the SIZE command. If this request
  34. fails, the size may be available in the response to a RETR
  35. (<a href="FtpOpen.html">FtpOpen()</a> with
  36. typ=FTPLIB_FILE_READ).</p>
  37. <p>This function is identical to <a href="FtpSize.html">FtpSize()</a>
  38. except for the type of the returned value.</p>
  39. </body>
  40. </html>