In: |
examples/chatserver.rb
|
Parent: | Object |
Example chatserver class — an extremely crude and simple chat server that demonstrates how to use Poll to do multiplexing IO in a single thread.
BANNER | = | <<-EOF [[ Ruby-Poll Example Chatserver ]] Commands: '/quit' to quit, '/shutdown' to shut the server down EOF |