Module: OpenSSL::SSL::SocketForwarder
- Defined in:
- lib/io/endpoint/ssl_endpoint.rb
Overview
Represents a module that forwards socket methods to the underlying IO object.
Instance Method Summary collapse
-
#close_on_exec=(value) ⇒ Object
Set whether the socket should be closed on exec.
-
#local_address ⇒ Object
Get the local address of the socket.
-
#remote_address ⇒ Object
Get the remote address of the socket.
-
#timeout ⇒ Object
Get the timeout for socket operations.
-
#timeout=(value) ⇒ Object
Set the timeout for socket operations.
-
#wait(*arguments) ⇒ Object
Wait for the socket to become ready.
-
#wait_readable(*arguments) ⇒ Object
Wait for the socket to become readable.
-
#wait_writable(*arguments) ⇒ Object
Wait for the socket to become writable.
Instance Method Details
#close_on_exec=(value) ⇒ Object
Set whether the socket should be closed on exec.
30 31 32 |
# File 'lib/io/endpoint/ssl_endpoint.rb', line 30 def close_on_exec=(value) to_io.close_on_exec = value end |
#local_address ⇒ Object
Get the local address of the socket.
38 39 40 |
# File 'lib/io/endpoint/ssl_endpoint.rb', line 38 def local_address to_io.local_address end |
#remote_address ⇒ Object
Get the remote address of the socket.
46 47 48 |
# File 'lib/io/endpoint/ssl_endpoint.rb', line 46 def remote_address to_io.remote_address end |
#timeout ⇒ Object
Get the timeout for socket operations.
82 83 84 |
# File 'lib/io/endpoint/ssl_endpoint.rb', line 82 def timeout to_io.timeout end |
#timeout=(value) ⇒ Object
Set the timeout for socket operations.
90 91 92 |
# File 'lib/io/endpoint/ssl_endpoint.rb', line 90 def timeout=(value) to_io.timeout = value end |
#wait(*arguments) ⇒ Object
Wait for the socket to become ready.
55 56 57 |
# File 'lib/io/endpoint/ssl_endpoint.rb', line 55 def wait(*arguments) to_io.wait(*arguments) end |
#wait_readable(*arguments) ⇒ Object
Wait for the socket to become readable.
64 65 66 |
# File 'lib/io/endpoint/ssl_endpoint.rb', line 64 def wait_readable(*arguments) to_io.wait_readable(*arguments) end |
#wait_writable(*arguments) ⇒ Object
Wait for the socket to become writable.
73 74 75 |
# File 'lib/io/endpoint/ssl_endpoint.rb', line 73 def wait_writable(*arguments) to_io.wait_writable(*arguments) end |