class SFML::Network::Ftp

CSFML’s FTP client. Useful for the rare game that needs to fetch extra content from a plain-FTP server. For anything modern, Ruby’s stdlib Net::FTP (and the Net::FTP gem) is a much nicer tool — this binding exists for parity with CSFML.

ftp = SFML::Network::Ftp.new ftp.connect(“ftp.example.com”).ok? #=> true ftp.login_anonymous.ok? #=> true ftp.directory_listing(“/”).names #=> [“pub”, “incoming”, …] ftp.download(“/pub/file.bin”, “/tmp/”) ftp.disconnect

Each call returns a Response (or DirectoryResponse / ListingResponse for commands that return a path or a list). All responses expose ok?, status (Integer), status_symbol, message.