enum

NatPMP::ResultCodes

Inherits Enum < Comparable < Value < Object

Result codes defined by the RFC 6886

RFC 6886 - 3.5. Result Codes

Constants

SUCCESS = 0
UNSUPPORTED_VERSION = 1
NOT_AUTHORIZED_OR_REFUSED = 2
NETWORK_FAILURE = 3
OUT_OF_RESOURCES = 4
UNSUPPORTED_OPCODE = 5

Instance methods

network_failure?

Returns true if this enum value equals NETWORK_FAILURE

Source
not_authorized_or_refused?

Returns true if this enum value equals NOT_AUTHORIZED_OR_REFUSED

Source
out_of_resources?

Returns true if this enum value equals OUT_OF_RESOURCES

Source
success?

Returns true if this enum value equals SUCCESS

Source
unsupported_opcode?

Returns true if this enum value equals UNSUPPORTED_OPCODE

Source
unsupported_version?

Returns true if this enum value equals UNSUPPORTED_VERSION

Source