The connection ID for the FTP session is probably the most important value. It can take more than a few seconds to connect to the FTP site, so it might be a good idea to change the cursor display so the user has some feedback that something is happening. You could also display a progress meter or some other indication that the system is busy. You pass the site name, logon name, and password. The FTP ID is a long integer and is the reference required for most commands that you will use later.
Many sites display a welcome message.
This message may warn of access restrictions, time limits, or announce general usage policies. This application does nothing with this text. You could test for the presence of a message and display the text in another window if required. Record the root directory as the first directory you have visited. The four grouped scrollable arrays list the directory information for the current directory.