Class: Proxy::RemoteExecution::Cockpit::StandardBufferedSocket

Inherits:
BufferedSocket
  • Object
show all
Defined in:
lib/smart_proxy_remote_execution_ssh/cockpit.rb

Class Method Summary collapse

Methods inherited from BufferedSocket

build, #initialize, #recv, #send

Constructor Details

This class inherits a constructor from Proxy::RemoteExecution::Cockpit::BufferedSocket

Class Method Details

.applies_for?(socket) ⇒ Boolean

Returns:

  • (Boolean)


44
45
46
# File 'lib/smart_proxy_remote_execution_ssh/cockpit.rb', line 44

def self.applies_for?(socket)
  socket.respond_to?(:send) && socket.respond_to?(:recv)
end