Method: DRb::DRbSSLSocket::SSLConfig#accept
- Defined in:
- lib/drb/ssl.rb
#accept(tcp) ⇒ Object
Accept connection to IO tcp, with context of the current certificate configuration
158 159 160 161 162 163 |
# File 'lib/drb/ssl.rb', line 158 def accept(tcp) ssl = OpenSSL::SSL::SSLSocket.new(tcp, @ssl_ctx) ssl.sync = true ssl.accept ssl end |