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

Instance Method Summary collapse

Class Method Details

.extended(object) ⇒ Object

:nodoc:



30
31
32
33
# File 'lib/net/ssh/proxy/https.rb', line 30

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



35
36
37
# File 'lib/net/ssh/proxy/https.rb', line 35

def send(data, _opts)
  syswrite(data)
end