Package brisa :: Package upnp :: Package control_point :: Module event :: Class EventListenerServer
[hide private]
[frames] | no frames]

Class EventListenerServer

source code

object --+
         |
        EventListenerServer

EventListener server. Wraps BRisa's web server and listens for events.

Instance Methods [hide private]
 
__init__(self, observer)
Constructor for the EventListenerServer class.
source code
tuple
host(self)
Returns a tuple in the form (host, port) where the server is being hosted at.
source code
 
start(self, event_host=None) source code
 
stop(self)
Stops the EventListenerServer.
source code
 
is_running(self) source code
 
destroy(self) source code
 
_cleanup(self) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, observer)
(Constructor)

source code 

Constructor for the EventListenerServer class.

Parameters:
  • observer - observer that implements the _on_event() method
Overrides: object.__init__

host(self)

source code 

Returns a tuple in the form (host, port) where the server is being hosted at.

Returns: tuple
the host and port of the server host

stop(self)

source code 

Stops the EventListenerServer. For restarting after stopping with this method use EventListenerServer.srv.start().