Class: Celluloid::IO::SSLServer
- Inherits:
-
Object
- Object
- Celluloid::IO::SSLServer
- Extended by:
- Forwardable
- Defined in:
- lib/celluloid/io/ssl_server.rb
Overview
SSLServer wraps a TCPServer to provide immediate SSL accept
Instance Attribute Summary collapse
-
#start_immediately ⇒ Object
Returns the value of attribute start_immediately.
-
#tcp_server ⇒ Object
readonly
Returns the value of attribute tcp_server.
Instance Method Summary collapse
- #accept ⇒ Object
-
#initialize(server, ctx) ⇒ SSLServer
constructor
A new instance of SSLServer.
Constructor Details
#initialize(server, ctx) ⇒ SSLServer
Returns a new instance of SSLServer.
13 14 15 16 17 18 19 20 |
# File 'lib/celluloid/io/ssl_server.rb', line 13 def initialize(server, ctx) if server.is_a?(::TCPServer) server = Celluloid::IO::TCPServer.from_ruby_server(server) end @tcp_server = server @ctx = ctx @start_immediately = true end |
Instance Attribute Details
#start_immediately ⇒ Object
Returns the value of attribute start_immediately.
10 11 12 |
# File 'lib/celluloid/io/ssl_server.rb', line 10 def start_immediately @start_immediately end |
#tcp_server ⇒ Object (readonly)
Returns the value of attribute tcp_server.
11 12 13 |
# File 'lib/celluloid/io/ssl_server.rb', line 11 def tcp_server @tcp_server end |