require 'net_service.rb' class MasterApp@clients.length} end def register(client) log "#{client} registered" @clMutex.synchronize { @clients[client]=Time.now } # TODO: checkClientExists end def unregister(client) log "#{client} removed" @clMutex.synchronize { @clients.delete(client) } # TODO: check Client wants to leave end def client pp self.class.included_modules pp self.pretty_inspect end end