class EventMachine::EvmaTCPServer

def start_server host, port


play it safe and just build a socket.
with an object of type TCPServer. Prior versions won't so we
Versions of ruby 1.8.4 later than May 26 2006 will work properly
def start_server host, port
  sd = Socket.new( Socket::AF_INET, Socket::SOCK_STREAM, 0 )
  sd.setsockopt( Socket::SOL_SOCKET, Socket::SO_REUSEADDR, true )
  sd.bind( Socket.pack_sockaddr_in( port, host ))
  sd.listen( 50 ) # 5 is what you see in all the books. Ain't enough.
  EvmaTCPServer.new sd
end