Previous topic

packet

Next topic

packets

This Page

packethandler

class pyogp.lib.base.message.packethandler.PacketHandler(settings=None)

general class handling individual packets

i do nothing

is_packet_handled(packet_name)

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

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

class pyogp.lib.base.message.packethandler.PacketReceivedNotifier(packet_name, settings)

received TestMessage packet

received(packet)
subscribe(*args, **kwdargs)
unsubscribe(*args, **kwdargs)