Created
January 24, 2010 19:16
-
-
Save Mon-Ouie/285387 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'net/ftp' | |
Joyau::Wlan.init # Init PSP inet module, ... | |
Joyau::Wlan.connect(2, 60) # Connect to the second access point (the connection will timeout after 60 seconds) | |
open("http://www.google.com") do |file| # Download Google's index, using a standard function | |
puts file.read # Print its content into stdout. | |
end | |
Joyau::Wlan.stop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment