Class: Proxy::RemoteExecution::Cockpit::MiniSSLBufferedSocket
Class Method Summary
collapse
Instance Method Summary
collapse
build, #initialize
Class Method Details
.applies_for?(socket) ⇒ Boolean
93
94
95
|
# File 'lib/smart_proxy_remote_execution_ssh/cockpit.rb', line 93
def self.applies_for?(socket)
socket.is_a? ::Puma::MiniSSL::Socket
end
|
Instance Method Details
#closed? ⇒ Boolean
106
107
108
|
# File 'lib/smart_proxy_remote_execution_ssh/cockpit.rb', line 106
def closed?
@socket.to_io.closed?
end
|
#recv(n) ⇒ Object
98
99
100
|
# File 'lib/smart_proxy_remote_execution_ssh/cockpit.rb', line 98
def recv(n)
@socket.read_nonblock(n)
end
|
#send(mesg, flags) ⇒ Object
102
103
104
|
# File 'lib/smart_proxy_remote_execution_ssh/cockpit.rb', line 102
def send(mesg, flags)
@socket.write_nonblock(mesg)
end
|