class OpenSSL::SSL::SSLServer
SSLServer represents a TCP/IP server socket with Secure Sockets Layer.
Public Class Methods
(TCPServer | UNIXServer svr, untyped ctx) → void
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/openssl/0/openssl.rbs, line 8948
def initialize: (TCPServer | UNIXServer svr, untyped ctx) -> void
Creates a new instance of SSLServer. * srv is an instance of TCPServer. * ctx is an instance of OpenSSL::SSL::SSLContext.
Public Instance Methods
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/openssl/0/openssl.rbs, line 8894
def accept: () -> SSLSocket
Works similar to TCPServer#accept.
() → nil
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/openssl/0/openssl.rbs, line 8902
def close: () -> nil
See IO#close for details.
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/openssl/0/openssl.rbs, line 8910
def listen: (Integer backlog) -> void
See TCPServer#listen for details.
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/openssl/0/openssl.rbs, line 8918
def shutdown: (interned | Integer how) -> void
See BasicSocket#shutdown for details.
() → bool
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/openssl/0/openssl.rbs, line 8923
def start_immediately: () -> bool
When true then accept works exactly the same as TCPServer#accept
[U] (boolish) → U
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/openssl/0/openssl.rbs, line 8928
def start_immediately=: [U] (boolish) -> U
When true then accept works exactly the same as TCPServer#accept
() → (TCPServer | UNIXServer)
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/openssl/0/openssl.rbs, line 8936
def to_io: () -> (TCPServer | UNIXServer)