Skip to content

Instantly share code, notes, and snippets.

@RX14
Last active September 20, 2015 14:39
Show Gist options
  • Save RX14/46250ee6d7640b922110 to your computer and use it in GitHub Desktop.
Save RX14/46250ee6d7640b922110 to your computer and use it in GitHub Desktop.
CR-TCPServ
require "socket"
require "./gamemanj-irctadv/*"
serv = TCPServer.new(6667)
loop do
socket = serv.accept
spawn GameConnection.new(socket).run
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment