Class: RemoteSyslog::TlsEndpoint::Handler

Inherits:
EventMachine::Connection
  • Object
show all
Defined in:
lib/remote_syslog/tls_endpoint.rb

Instance Method Summary collapse

Constructor Details

#initialize(endpoint) ⇒ Handler

Returns a new instance of Handler.



4
5
6
7
8
# File 'lib/remote_syslog/tls_endpoint.rb', line 4

def initialize(endpoint)
  @endpoint = endpoint
  @endpoint.connection = self
  super()
end

Instance Method Details

#connection_completedObject



10
11
12
# File 'lib/remote_syslog/tls_endpoint.rb', line 10

def connection_completed
  start_tls
end

#unbindObject



14
15
16
# File 'lib/remote_syslog/tls_endpoint.rb', line 14

def unbind
  @endpoint.unbind
end