Module: Net::SSH::Proxy::HTTPS::SSLSocketCompatibility
- Defined in:
- lib/net/ssh/proxy/https.rb
Overview
Shim to make OpenSSL::SSL::SSLSocket behave like a regular TCPSocket for all intents and purposes of Net::SSH::BufferedIo
Class Method Summary collapse
-
.extended(object) ⇒ Object
:nodoc:.
Instance Method Summary collapse
Class Method Details
.extended(object) ⇒ Object
:nodoc:
31 32 33 34 |
# File 'lib/net/ssh/proxy/https.rb', line 31 def self.extended(object) #:nodoc: object.define_singleton_method(:recv, object.method(:sysread)) object.sync_close = true end |
Instance Method Details
#send(data, _opts) ⇒ Object
36 37 38 |
# File 'lib/net/ssh/proxy/https.rb', line 36 def send(data, _opts) syswrite(data) end |