Class: Nl::Linux::Handshake::Notifications::Ready

Inherits:
Genl::Message show all
Defined in:
nl-linux/generated/nl/linux/handshake.rb

Overview

Notify handlers that a new handshake request is waiting

Constant Summary collapse

TYPE =
1
FIXED_HEADER =
nil
ATTRIBUTE_SET =
AttributeSets::Accept
ATTRIBUTES =
Ractor.make_shareable(%i[sockfd message_type timeout auth_mode peer_identity certificate peername keyring])

Instance Attribute Summary

Attributes included from StructuredPayload

#attributes, #fixed_header

Instance Method Summary collapse

Methods inherited from Genl::Message

decode

Methods inherited from Raw::Message

#append_attribute, decode, #initialize

Methods included from StructuredPayload

#encode, #initialize

Constructor Details

This class inherits a constructor from Nl::Raw::Message

Instance Method Details

#auth_mode ⇒ Integer

Known enum values are defined in Enums::Auth.

Returns:

  • (Integer)

See Also:



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

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

#certificate ⇒ Array<AttributeSets::X509>



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

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

#keyring ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#message_type ⇒ Integer

Known enum values are defined in Enums::MsgType.

Returns:

  • (Integer)

See Also:



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

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

#peer_identity ⇒ Array<Integer>

Returns:

  • (Array<Integer>)

See Also:



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

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

#peername ⇒ String

Returns:

  • (String)

See Also:



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

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

#sockfd ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#timeout ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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