We don't want to store anything we don't care about!
# File lib/nmap/parser.rb, line 1812 def completed? # @session becomes non-nil when <nmaprun> closes, which means # we're done @session ? true : false end
# File lib/nmap/parser.rb, line 1809 def method_missing(sym, *args) end
# File lib/nmap/parser.rb, line 1778 def tag_end(tag) name = tag.to_sym return if ignored(name) last = @loc.pop case name when :host @hosts << Parser::Host.new(last) @loc[@loc.size - 2][:kids].pop if @callback Thread.new(@hosts.last) do |host| Thread.current[:cb] = true @callback.call(host) end end when :nmaprun @session = Parser::Session.new(last) if @callback and Thread.list.size > 1 Thread.list.reject { |t| not t[:cb] }.each { |t| t.join } end end end
Generated with the Darkfish Rdoc Generator 2.