Parent

Puma::MiniSSL::Server

if defined?(JRUBY_VERSION) class Engine def self.server(key, cert) new(key, cert) end end end

Public Class Methods

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

Public Instance Methods

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

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

  Socket.new io, engine
end
close() click to toggle source
# File lib/puma/minissl.rb, line 143
def close
  @socket.close
end
to_io() click to toggle source
# File lib/puma/minissl.rb, line 125
def to_io
  @socket
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.