FtpConnect.html 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
  2. <html>
  3. <head>
  4. <title>FtpConnect</title>
  5. <link rel="stylesheet" type="text/css" href="doc.css">
  6. </head>
  7. <body>
  8. <h1>FtpConnect</h1>
  9. <p>Connect to an FTP server.</p>
  10. <h2>SYNOPSIS</h2>
  11. <pre>
  12. #include &lt;ftplib.h&gt;
  13. int FtpConnect(const char *host, netbuf **nControl);
  14. </pre>
  15. <h2>PARAMETERS</h2>
  16. <dl>
  17. <dt><b>host</b></dt>
  18. <dd>The name of the host machine to connect to and optionally an
  19. alternate port number to use.</dd>
  20. <dt><b>nControl</b></dt>
  21. <dd>The address where the pointer to the newly created control
  22. handle should be stored.</dd>
  23. </dl>
  24. <h2>DESCRIPTION</h2>
  25. <p>FtpConnect() establishes a connection to the FTP server on the
  26. specified machine and returns a handle which can be used to
  27. initiate data transfers. The host name should be specified as
  28. &lt;host&gt; or &lt;host&gt;:&lt;port&gt;. &lt;host&gt; may be
  29. either a host name or ip address. &lt;port&gt; may be either a
  30. service name or a port number.</p>
  31. <h2>RETURN VALUE</h2>
  32. <p>If the connection to the remote server if successful,
  33. FtpConnect() returns 1. Otherwise, 0 is returned.</p>
  34. </body>
  35. </html>