FTP Library Package 1.2 for Tcl/Tk Manual Pages

COMMAND
FTP::Close
 
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 {![FTP::Open ...]} {
	puts "Connection refused!"
	exit 1
}

# get file
FTP::Get index.html

# close connection
FTP::Close
	

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


© 1999 Steffen Traeger