Previous topic

message_dot_xml

Next topic

message_manager

This Page

message_handler

class pyogp.lib.base.message.message_handler.MessageHandledNotifier(message_name, settings)

pseudo subclassing the Event class to treat the message like an event

received(message)
subscribe(*args, **kwdargs)
unsubscribe(*args, **kwdargs)
class pyogp.lib.base.message.message_handler.MessageHandler(settings=None)

general class handling individual messages

i do nothing

handle(message)
essentially a case statement to pass messages to event notifiers in the form of self attributes
is_message_handled(message_name)

if the message is being monitored, return True, otherwise, return False

this can allow us to skip parsing inbound messages if no one is watching a particular one

register(message_name)