Class: Nl::Linux::Psp::AttributeSets::Assoc

Inherits:
AttributeSet show all
Defined in:
nl-linux/generated/nl/linux/psp.rb

Defined Under Namespace

Classes: Attribute, DevId, RxKey, SockFd, TxKey, Version

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:



326
# File 'nl-linux/generated/nl/linux/psp.rb', line 326

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



332
# File 'nl-linux/generated/nl/linux/psp.rb', line 332

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

Instance Method Details

#dev_id ⇒ Integer

PSP device ID.

Returns:

  • (Integer)

See Also:



297
# File 'nl-linux/generated/nl/linux/psp.rb', line 297

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

#rx_key ⇒ AttributeSets::Keys

Returns:

See Also:



310
# File 'nl-linux/generated/nl/linux/psp.rb', line 310

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

#sock_fd ⇒ Integer

Sockets which should be bound to the association immediately.

Returns:

  • (Integer)

See Also:



319
# File 'nl-linux/generated/nl/linux/psp.rb', line 319

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

#tx_key ⇒ AttributeSets::Keys

Returns:

See Also:



314
# File 'nl-linux/generated/nl/linux/psp.rb', line 314

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

#version ⇒ Integer

PSP versions (AEAD and protocol version) used by this association, dictates the size of the key.

Known enum values are defined in Enums::Version.

Returns:

  • (Integer)

See Also:



306
# File 'nl-linux/generated/nl/linux/psp.rb', line 306

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