Module: HopTracker
- Defined in:
- lib/hoptracker/prober.rb,
lib/hoptracker/constants.rb,
lib/hoptracker/exceptions.rb
Overview
sharable_constant_value: literal
Defined Under Namespace
Classes: FailedToInitializeProber, HopTrackerError, InvalidReturnedProbe, ProbeError, Prober
Constant Summary collapse
- RECVERR_ORIGINS =
{ SO_EE_ORIGIN_NONE: 0, SO_EE_ORIGIN_LOCAL: 1, SO_EE_ORIGIN_ICMP: 2, SO_EE_ORIGIN_ICMP6: 3 }
Class Method Summary collapse
-
.errno_name(errno_number) ⇒ Symbol
Helper function: Returns the Errno name for an Errno number.
Class Method Details
.errno_name(errno_number) ⇒ Symbol
Helper function: Returns the Errno name for an Errno number.
12 13 14 15 16 17 18 19 |
# File 'lib/hoptracker/prober.rb', line 12 def self.errno_name(errno_number) Errno.constants.each do |constant_name| if Errno.const_get(constant_name)::Errno == errno_number return constant_name end end return nil end |