Gentee Programming Language > Documentation > Libraries Download documentation

ftp.open

This method establishes an FTP connection with the server. This method must be called before other methods dealing with the FTP server are called.
 
uint ftp.open(
      str   url,
      str   user,
      str   password,
      uint   flag,
      uint   notify
)

Parameters

urlThe name or address of the FTP server.
userA user name. If the string is empty, anonymous connections are used.
passwordA user password. If the connection is anonymous, your e-mail address is required.
flagConnection flags.
$FTP_ANONYMAnonymous connection.
$FTP_PASVEstablishes a connection in passive mode.
notifyfunction is used to receive notification messages. This parameter can be zero.

Return value

Nonzero if initialization was successful; otherwise 0.

See also

    Internet


 Copyright © 2004-2006 Gentee Inc. All rights reserved.