fork download
  1. require 'socket'
  2.  
  3. bot = TCPServer.new('telnet irc.freenode.org', 6667)
  4.  
  5. s.puts "NICK foo"
  6. s.puts "USER foo 0 * :foo"
  7. s.puts "JOIN #ruby"
Runtime error #stdin #stdout #stderr 0.06s 10448KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
prog.rb:3:in `initialize': getaddrinfo: Name or service not known (SocketError)
	from prog.rb:3:in `new'
	from prog.rb:3:in `<main>'