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.



69
70
71
# File 'lib/io/stream/openssl.rb', line 69

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

#buffered?Boolean

Check if the SSL socket is buffered.

Returns:



61
62
63
# File 'lib/io/stream/openssl.rb', line 61

def buffered?
  return to_io.buffered?
end

#close_readObject

Close the read end of the SSL socket.



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

def close_read
  # Ignored.
end

#close_writeObject

Close the write end of the SSL socket.



23
24
25
# File 'lib/io/stream/openssl.rb', line 23

def close_write
  self.stop
end

#readable?Boolean

Check if the SSL socket is readable.

Returns:



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

def readable?
  to_io.readable?
end

#timeoutObject

Get the timeout for SSL socket operations.



45
46
47
# File 'lib/io/stream/openssl.rb', line 45

def timeout
  to_io.timeout
end

#timeout=(value) ⇒ Object

Set the timeout for SSL socket operations.



53
54
55
# File 'lib/io/stream/openssl.rb', line 53

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

#wait_readableObject

Wait for the SSL socket to become readable.



30
31
32
# File 'lib/io/stream/openssl.rb', line 30

def wait_readable(...)
  to_io.wait_readable(...)
end

#wait_writableObject

Wait for the SSL socket to become writable.



37
38
39
# File 'lib/io/stream/openssl.rb', line 37

def wait_writable(...)
  to_io.wait_writable(...)
end