Class: LightIO::Library::OpenSSL::SSL::SSLSocket
- Inherits:
-
Object
- Object
- LightIO::Library::OpenSSL::SSL::SSLSocket
- Includes:
- Base, IO::IOMethods, Wrap::IOWrapper
- Defined in:
- lib/lightio/library/openssl.rb
Instance Method Summary collapse
- #accept_nonblock ⇒ Object
-
#initialize(io, *args) ⇒ SSLSocket
constructor
A new instance of SSLSocket.
Methods included from Wrap::IOWrapper
Methods included from Base
Methods included from IO::IOMethods
#close, #eof, #getbyte, #getc, #gets, included, #print, #printf, #puts, #read, #readbyte, #readchar, #readline, #readlines, #readpartial, #wait, #wait_readable, #wait_writable
Constructor Details
#initialize(io, *args) ⇒ SSLSocket
Returns a new instance of SSLSocket.
14 15 16 17 |
# File 'lib/lightio/library/openssl.rb', line 14 def initialize(io, *args) io = io.send(:light_io_raw_obj) if io.is_a?(LightIO::Library::IO) super(io, *args) end |
Instance Method Details
#accept_nonblock ⇒ Object
19 20 21 22 |
# File 'lib/lightio/library/openssl.rb', line 19 def accept_nonblock socket = @obj.accept_nonblock(*args) socket.is_a?(Symbol) ? socket : self.class._wrap(socket) end |