module Nmapr::Options::Performance
Public Instance Methods
delay(type, value)
click to toggle source
# File lib/nmapr/options/performance.rb, line 34 def delay(type, value) case type when :min add_argument("--scan-delay " << value.to_s) when :max add_argument("--max-scan-delay " << value.to_s) end end
host_timeout(value)
click to toggle source
# File lib/nmapr/options/performance.rb, line 52 def host_timeout(value) add_argument("--max-hostgroup " << value.to_s) end
hostgroup(type, value)
click to toggle source
# File lib/nmapr/options/performance.rb, line 5 def hostgroup(type, value) case type when :min add_argument("--min-hostgroup " << value.to_s) when :max add_argument("--max-hostgroup " << value.to_s) end end
parallelism(type, value)
click to toggle source
# File lib/nmapr/options/performance.rb, line 14 def parallelism(type, value) case type when :min add_argument("--min-parallelism " << value.to_s) when :max add_argument("--max-parallelism " << value.to_s) end end
rate(type, value)
click to toggle source
# File lib/nmapr/options/performance.rb, line 43 def rate(type, value) case type when :min add_argument("--min-rate" << value.to_s) when :max add_argument("--max-rate" << value.to_s) end end
retries(value)
click to toggle source
# File lib/nmapr/options/performance.rb, line 56 def retries(value) add_argument("--max-retries " << value.to_s) end
round_trip_timeout(type, value)
click to toggle source
# File lib/nmapr/options/performance.rb, line 23 def round_trip_timeout(type, value) case type when :min add_argument("--min-rtt-timeout" << value.to_s) when :max add_argument("--max-rtt-timeout " << value.to_s) when :initial add_argument("--initial-rtt-timeout " << value.to_s) end end