ftp Library Package 2.1 for Tcl/Tk help file

  ftp Library Package 2.1 for Tcl/Tk Manual Pages

  COMMAND
    ftp::Close handle
    The ftp::Close command terminates the ftp session and if file transfer is not in progress, the server closes the control connection. If file transfer is in progress, the connection will remain open for result response and the server will then close it.
  EXAMPLE

        # open a new connection
        if {[set conn [ftp::Open ...]] == -1} {
        	puts "Connection refused!"
        	exit 1
        }

        # get file
        ftp::Get $conn index.html

        # close connection
        ftp::Close $conn

[Contents] [Previous: ftp::Open] [Next: ftp::Cd]

© 1999 Steffen Traeger