Class: Puma::MiniSSL::Server
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/puma/minissl.rb |
Class Method Summary
- .new(socket, ctx) ⇒ Server constructor
Instance Attribute Summary
- #addr readonly
- #closed? ⇒ Boolean readonly
- #to_io readonly
Instance Method Summary
Constructor Details
.new(socket, ctx) ⇒ Server
# File 'lib/puma/minissl.rb', line 418
def initialize(socket, ctx) @socket = socket @ctx = ctx @eng_ctx = IS_JRUBY ? @ctx : SSLContext.new(ctx) end
Instance Attribute Details
#addr (readonly)
# File 'lib/puma/minissl.rb', line 445
def addr @socket.addr end
#closed? ⇒ Boolean
(readonly)
[ GitHub ]
# File 'lib/puma/minissl.rb', line 453
def closed? @socket.closed? end
#to_io (readonly)
[ GitHub ]# File 'lib/puma/minissl.rb', line 439
def to_io @socket end
Instance Method Details
#accept
[ GitHub ]#accept_nonblock
[ GitHub ]#close
[ GitHub ]# File 'lib/puma/minissl.rb', line 449
def close @socket.close unless @socket.closed? # closed? call is for Windows end