DTLS::Socket
Inherits IO::Buffered < IO < Reference < Object
Instance methods
Returns the negotiated ALPN protocol (eg: "h2") of nil if no protocol was
negotiated.
Returns the current cipher used by this socket.
Returns true if this IO is closed.
IO defines returns false, but including types may override.
Returns the hostname provided through Server Name Indication (SNI)
If #sync_close? is true, closing this socket will
close the underlying IO.
If #sync_close? is true, closing this socket will
close the underlying IO.
Returns the name of the TLS protocol version used by this socket.
ameba:disable Metrics/CyclomaticComplexity
Flushes the wrapped IO.
TODO: Add return type restriction Nil
Reads at most slice.size bytes from the wrapped IO into slice.
Returns the number of bytes read.
TODO: Add return type restriction Int32
Rewinds the wrapped IO.
TODO: Add return type restriction Nil
Writes slice entirely into the wrapped IO.
TODO: Add return type restriction Nil