Class: OpenSSL::SSL::SSLSocket
- Inherits:
-
Object
- Object
- OpenSSL::SSL::SSLSocket
- Defined in:
- lib/io/stream/openssl.rb,
lib/io/stream/shim/readable.rb
Overview
SSL socket extensions for stream compatibility.
Instance Method Summary collapse
-
#buffered=(value) ⇒ Object
Set the buffered state of the SSL socket.
-
#buffered? ⇒ Boolean
Check if the SSL socket is buffered.
-
#close_read ⇒ Object
Close the read end of the SSL socket.
-
#close_write ⇒ Object
Close the write end of the SSL socket.
-
#readable? ⇒ Boolean
Check if the SSL socket is readable.
-
#timeout ⇒ Object
Get the timeout for SSL socket operations.
-
#timeout=(value) ⇒ Object
Set the timeout for SSL socket operations.
-
#wait_readable ⇒ Object
Wait for the SSL socket to become readable.
-
#wait_writable ⇒ Object
Wait for the SSL socket to become writable.
Instance Method Details
#buffered=(value) ⇒ Object
Set the buffered state of the SSL socket.
69 70 71 |
# File 'lib/io/stream/openssl.rb', line 69 def buffered=(value) to_io.buffered = value end |
#buffered? ⇒ Boolean
Check if the SSL socket is buffered.
61 62 63 |
# File 'lib/io/stream/openssl.rb', line 61 def buffered? return to_io.buffered? end |
#close_read ⇒ Object
Close the read end of the SSL socket.
16 17 18 |
# File 'lib/io/stream/openssl.rb', line 16 def close_read # Ignored. end |
#close_write ⇒ Object
Close the write end of the SSL socket.
23 24 25 |
# File 'lib/io/stream/openssl.rb', line 23 def close_write self.stop end |
#readable? ⇒ Boolean
Check if the SSL socket is readable.
57 58 59 |
# File 'lib/io/stream/shim/readable.rb', line 57 def readable? to_io.readable? end |
#timeout ⇒ Object
Get the timeout for SSL socket operations.
45 46 47 |
# File 'lib/io/stream/openssl.rb', line 45 def timeout to_io.timeout end |
#timeout=(value) ⇒ Object
Set the timeout for SSL socket operations.
53 54 55 |
# File 'lib/io/stream/openssl.rb', line 53 def timeout=(value) to_io.timeout = value end |
#wait_readable ⇒ Object
Wait for the SSL socket to become readable.
30 31 32 |
# File 'lib/io/stream/openssl.rb', line 30 def wait_readable(...) to_io.wait_readable(...) end |
#wait_writable ⇒ Object
Wait for the SSL socket to become writable.
37 38 39 |
# File 'lib/io/stream/openssl.rb', line 37 def wait_writable(...) to_io.wait_writable(...) end |