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.
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.
Closes the wrapped IO
.
Flushes the wrapped IO
.
Reads at most slice.size bytes from the wrapped IO
into slice.
Rewinds the wrapped IO
.
Writes at most slice.size bytes from slice into the wrapped IO
.
IO::Buffered
IO
IO
Reference
Reference
Object
Object
Returns the negotiated ALPN protocol (eg: "h2"
) of nil
if no protocol was negotiated.
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.
Closes the wrapped IO
.
Flushes the wrapped IO
.
Reads at most slice.size bytes from the wrapped IO
into slice. Returns the number of bytes read.
Rewinds the wrapped IO
.
Writes at most slice.size bytes from slice into the wrapped IO
. Returns the number of bytes written.
© 2012–2020 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/0.35.1/OpenSSL/SSL/Socket.html