class Puma::MiniSSL::Server
Public Class Methods
Source
# File lib/puma/minissl.rb, line 418 def initialize(socket, ctx) @socket = socket @ctx = ctx @eng_ctx = IS_JRUBY ? @ctx : SSLContext.new(ctx) end
Public Instance Methods
Source
# File lib/puma/minissl.rb, line 424 def accept @ctx.check io = @socket.accept engine = Engine.server @eng_ctx Socket.new io, engine end
Source
# File lib/puma/minissl.rb, line 431 def accept_nonblock @ctx.check io = @socket.accept_nonblock engine = Engine.server @eng_ctx Socket.new io, engine end
Source
# File lib/puma/minissl.rb, line 445 def addr @socket.addr end
@!attribute [r] addr @version 5.0.0
Source
# File lib/puma/minissl.rb, line 449 def close @socket.close unless @socket.closed? # closed? call is for Windows end