Class Qpid::Proton::Listener::Handler
In: lib/core/listener.rb
Parent: Object

Class that handles listener events and provides options for accepted connections. This class simply returns a fixed set of options for every connection accepted, but you can subclass and override all of the on_ methods to provide more interesting behaviour.

Methods

new   on_accept   on_close   on_error   on_open  

Public Class methods

@param opts [Hash] Options to return from on_accept.

Public Instance methods

Called when a listener accepts a new connection. @param listener [Listener] The listener @return [Hash] Options to apply to the incoming connection, see {connect}

Called when the listener closes. @param listener [Listener] The listener accepting the connection.

Called if an error occurs. If there is an error while opening the listener, this method is called and {on_open} is not @param listener [Listener] @param what [Condition] Information about the error.

Called when the listener is ready to accept connections. @param listener [Listener] The listener

[Validate]