Class: OpenSSL::SSL::SSLSocket

Inherits:
Object
  • Object
show all
Defined in:
lib/io/stream/openssl.rb,
lib/io/stream/shim/readable.rb

Overview

SSL socket extensions for stream compatibility.

Instance Method Summary collapse

Instance Method Details

#buffered=(value) ⇒ Object

Set the buffered state of the SSL socket.



25
26
27
# File 'lib/io/stream/openssl.rb', line 25

def buffered=(value)
	to_io.buffered = value
end

#buffered?Boolean

Check if the SSL socket is buffered.

Returns:

  • (Boolean)


17
18
19
# File 'lib/io/stream/openssl.rb', line 17

def buffered?
	return to_io.buffered?
end

#readable?Boolean

Check if the SSL socket is readable.

Returns:

  • (Boolean)


57
58
59
# File 'lib/io/stream/shim/readable.rb', line 57

def readable?
	to_io.readable?
end