Created
August 30, 2011 18:28
-
-
Save lteo/1181623 to your computer and use it in GitHub Desktop.
Test Server
This file contains hidden or 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
#! /usr/local/bin/ruby | |
require 'gserver' | |
class TestServer < GServer | |
def initialize(port, *args) | |
super(port, *args) | |
end | |
def server(io) | |
io.puts("bleh") | |
end | |
end | |
server = TestServer.new(6200, "192.168.0.1") | |
server.audit = true | |
server.start | |
server.join |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment