Class: Nl::Linux::Handshake
- Inherits:
-
Genl::Family
- Object
- Family
- Genl::Family
- Nl::Linux::Handshake
- Defined in:
- nl-linux/generated/nl/linux/handshake.rb
Overview
Netlink protocol to request a transport layer security handshake.
Defined Under Namespace
Modules: AttributeSets, Constants, Enums, Messages, Notifications, Structs Classes: AsyncOperations
Constant Summary collapse
- NAME =
"handshake"- VERSION =
1
Class Method Summary collapse
Instance Method Summary collapse
-
#async(stream_capacity: nil) ⇒ AsyncOperations
Returns the asynchronous operation facade for this family.
-
#do_accept(**args) ⇒ Messages::DoAcceptReply
Handler retrieves next queued handshake request.
-
#do_done(**args) ⇒ void
Handler reports handshake completion.
- #subscribe(*groups) ⇒ self
- #unsubscribe(*groups) ⇒ self
Methods inherited from Genl::Family
Class Method Details
.open(resolver: ::Nl::Linux::DEFAULT_RESOLVER, executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY) ⇒ Handshake .open(resolver: ::Nl::Linux::DEFAULT_RESOLVER, executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY) {|family| ... } ⇒ Object
33 34 35 |
# File 'nl-linux/generated/nl/linux/handshake.rb', line 33 def self.open(resolver: ::Nl::Linux::DEFAULT_RESOLVER, executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY) super end |
Instance Method Details
#async(stream_capacity: nil) ⇒ AsyncOperations
Returns the asynchronous operation facade for this family.
495 496 497 498 |
# File 'nl-linux/generated/nl/linux/handshake.rb', line 495 def async(stream_capacity: nil) return @async_operations ||= build_async_facade(AsyncOperations) if stream_capacity.nil? build_async_facade(AsyncOperations, stream_capacity:) end |
#do_accept(**args) ⇒ Messages::DoAcceptReply
Handler retrieves next queued handshake request
Requires CAP_NET_ADMIN in the initial user namespace.
445 446 447 |
# File 'nl-linux/generated/nl/linux/handshake.rb', line 445 def do_accept(**args) (:"do", Messages::DoAcceptRequest, Messages::DoAcceptReply, args) end |
#do_done(**args) ⇒ void
This method returns an undefined value.
Handler reports handshake completion
Requires CAP_NET_ADMIN in the initial user namespace.
458 459 460 |
# File 'nl-linux/generated/nl/linux/handshake.rb', line 458 def do_done(**args) (:"do", Messages::DoDoneRequest, nil, args) end |
#subscribe(*groups) ⇒ self
502 503 504 505 |
# File 'nl-linux/generated/nl/linux/handshake.rb', line 502 def subscribe(*groups) = super # @rbs (*(:none | :tlshd) groups) -> self # @param [Array<:none, :tlshd>] groups # @return [self] |
#unsubscribe(*groups) ⇒ self
506 |
# File 'nl-linux/generated/nl/linux/handshake.rb', line 506 def unsubscribe(*groups) = super |