Class: Nl::Linux::Handshake::AttributeSets::Accept

Inherits:
AttributeSet
  • Object
show all
Defined in:
nl-linux/generated/nl/linux/handshake.rb

Defined Under Namespace

Classes: Attribute, AuthMode, Certificate, HandlerClass, Keyring, MessageType, PeerIdentity, Peername, Sockfd, Timeout

Constant Summary

Constants inherited from AttributeSet

AttributeSet::SELECTOR_NAMES

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AttributeSet

#<<, #[], build_attributes, decode, #encode, #initialize

Constructor Details

This class inherits a constructor from Nl::AttributeSet

Class Method Details

.by_name(name) ⇒ Attribute

Looks up Attribute class by name.

Parameters:

  • name (Symbol)

Returns:



239
# File 'nl-linux/generated/nl/linux/handshake.rb', line 239

def by_name(name); BY_NAME.fetch(name); end

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



245
# File 'nl-linux/generated/nl/linux/handshake.rb', line 245

def by_type(type); BY_TYPE.fetch(type); end

Instance Method Details

#auth_mode ⇒ Integer

Known enum values are defined in Enums::Auth.

Returns:

  • (Integer)

See Also:



216
# File 'nl-linux/generated/nl/linux/handshake.rb', line 216

def auth_mode; self[:"auth_mode"]&.value; end

#certificate ⇒ Array<AttributeSets::X509>

Returns:

See Also:



224
# File 'nl-linux/generated/nl/linux/handshake.rb', line 224

def certificate; self[:"certificate"].map(&:value); end

#handler_class ⇒ Integer

Known enum values are defined in Enums::HandlerClass.

Returns:

  • (Integer)

See Also:



202
# File 'nl-linux/generated/nl/linux/handshake.rb', line 202

def handler_class; self[:"handler_class"]&.value; end

#keyring ⇒ Integer

Returns:

  • (Integer)

See Also:



232
# File 'nl-linux/generated/nl/linux/handshake.rb', line 232

def keyring; self[:"keyring"]&.value; end

#message_type ⇒ Integer

Known enum values are defined in Enums::MsgType.

Returns:

  • (Integer)

See Also:



207
# File 'nl-linux/generated/nl/linux/handshake.rb', line 207

def message_type; self[:"message_type"]&.value; end

#peer_identity ⇒ Array<Integer>

Returns:

  • (Array<Integer>)

See Also:



220
# File 'nl-linux/generated/nl/linux/handshake.rb', line 220

def peer_identity; self[:"peer_identity"].map(&:value); end

#peername ⇒ String

Returns:

  • (String)

See Also:



228
# File 'nl-linux/generated/nl/linux/handshake.rb', line 228

def peername; self[:"peername"]&.value; end

#sockfd ⇒ Integer

Returns:

  • (Integer)

See Also:



197
# File 'nl-linux/generated/nl/linux/handshake.rb', line 197

def sockfd; self[:"sockfd"]&.value; end

#timeout ⇒ Integer

Returns:

  • (Integer)

See Also:



211
# File 'nl-linux/generated/nl/linux/handshake.rb', line 211

def timeout; self[:"timeout"]&.value; end