O'Reilly logo

Extended STL, Volume 1: Collections and Iterators by Matthew Wilson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 21. Intermezzo: When the Efficiency/Usability Balance Is Tipped: Enumerating FTP Server Directories

 

Giving money and power to government is like giving whiskey and car keys to teenage boys.

 
 --P. J. O’Rourke

The Windows WinInet API presents an abstraction over Internet protocols, providing a suite of functions that simplify Internet programming of the HTTP, FTP, and Gopher protocols. Of particular interest to us, at this point in the book, are the FtpFindFirstFile(), InternetFindNextFile(), and InternetClose() functions, which provide a means of enumerating the contents of a directory on a remote FTP server. Conveniently, for Windows programmers at least, FtpFindFirstFile() and InternetFindNextFile() return information to the caller using ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required