YAAAAAAAAAAAY - this feels like a christmas present.
just made my first http request from the gosu app - it works perfectly fine - thanks a lot!!!!
when you say just-drop-in-the-required-c-file, does that mean i can download the sourcecode and add the .c files from the official ruby built to roll my own gosu app bundle, if required?
# also barebone gosu network example Main.rb
require 'gosu'
require "socket"
class MyWindow < Gosu::Window
def initialize
super 640, 480, false
self.caption = "Your Gosu game goes here"
host = '
http://www.libgosu.org' # The web server
path = "/index.htm" # The file we want
socket = TCPSocket.open(host, 80)
socket.print("GET #{path} HTTP/1.0\r\n\r\n")
response = socket.read # Read complete response
# Split response at first blank line into headers and body
headers,body = response.split("\r\n\r\n", 2)
self.caption = body[0...80]
end
end
MyWindow.new.show