FtpClose.html 950 B

1234567891011121314151617181920212223242526272829303132
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
  2. <html>
  3. <head>
  4. <title>FtpClose</title>
  5. <link rel="stylesheet" type="text/css" href="doc.css">
  6. </head>
  7. <body>
  8. <h1>FtpClose</h1>
  9. <p>Close a connection.</p>
  10. <h2>SYNOPSIS</h2>
  11. <pre>
  12. #include &lt;ftplib.h&gt;
  13. int FtpClose(netbuf *nData);
  14. </pre>
  15. <h2>PARAMETERS</h2>
  16. <dl>
  17. <dt><b>nData</b></dt>
  18. <dd>A handle returned by <a href="FtpAccess.html">FtpAccess()</a>
  19. or <a href="FtpConnect.html">FtpConnect()</a>.</dd>
  20. </dl>
  21. <h2>DESCRIPTION</h2>
  22. <p>Closes the connection specified by 'nData' and frees associated
  23. resources. If the connection is a command connection, any
  24. associated data connection is also closed and the command
  25. connection is closed without sending any commands.</p>
  26. <p>FtpClose() destroys the connection object and any associated
  27. data connection object. Do not use either connection after calling
  28. FtpClose().</p>
  29. <h2>RETURN VALUE</h2>
  30. <p>Returns 1 if successful or 0 on error.</p>
  31. </body>
  32. </html>