class UV::InboundConnection
Public Class Methods
new(tcp)
click to toggle source
Calls superclass method
UV::Connection::new
# File lib/uv-rays/connection.rb, line 107 def initialize(tcp) super() @reactor = tcp.reactor @transport = tcp @transport.finally { on_close } @transport.progress { |*data| on_read(*data) } end
Public Instance Methods
use_tls(args = {})
click to toggle source
# File lib/uv-rays/connection.rb, line 116 def use_tls(args = {}) args[:server] = true if @transport.connected @transport.start_tls(args) else @using_tls = args end end