class Puma::MiniSSL::Server - puma-3.10.0 Documentation

# class Puma::MiniSSL::Server

### Public Class Methods

new(socket, ctx) click to toggle source

    # File lib/puma/minissl.rb, line 200
    def initialize(socket, ctx)
      @socket = socket
      @ctx = ctx
    end

### Public Instance Methods

accept() click to toggle source

    # File lib/puma/minissl.rb, line 209
    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 217
    def accept_nonblock
      @ctx.check
      io = @socket.accept_nonblock
      engine = Engine.server @ctx

      Socket.new io, engine
    end

close() click to toggle source

    # File lib/puma/minissl.rb, line 225
    def close
      @socket.close
    end

to_io() click to toggle source

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