Hi,
This threaded socket server seems to working well so far...
server = TCPServer.new('127.0.0.1',5190)
while
Thread.new(session = server.accept) {|mySession|
while mySession
#do all my business
sleep
end
}
end
Except I am looking for way to do this:
1) Let's say 5 clients arrive, that would mean there are now 5
sleeping threads, correct?
2) The sixth client arrives and triggers an event. On that event how
do I wake up all 5 sleeping threads?
TIA,
Rick