class Puma::MiniSSL::Server

Public Class Methods

new(socket, ctx) click to toggle source
# File lib/puma/minissl.rb, line 290
def initialize(socket, ctx)
  @socket = socket
  @ctx = ctx
end

Public Instance Methods

accept() click to toggle source
# File lib/puma/minissl.rb, line 300
def accept
  @ctx.check
  io = @socket.accept
  engine = Engine.server @ctx

  Socket.new io, engine
end
accept_nonblock() click to toggle source
# File lib/puma/minissl.rb, line 308
def accept_nonblock
  @ctx.check
  io = @socket.accept_nonblock
  engine = Engine.server @ctx

  Socket.new io, engine
end
addr() click to toggle source

@!attribute [r] addr @version 5.0.0

# File lib/puma/minissl.rb, line 318
def addr
  @socket.addr
end
close() click to toggle source
# File lib/puma/minissl.rb, line 322
def close
  @socket.close unless @socket.closed?       # closed? call is for Windows
end
to_io() click to toggle source

@!attribute [r] #to_io

# File lib/puma/minissl.rb, line 296
def to_io
  @socket
end