Previous topic

udpdispatcher

Next topic

Unit Tests

This Page

udpserializer

class pyogp.lib.base.message.udpserializer.MsgBlockType
classmethod MBT_as_string(typenum)
class pyogp.lib.base.message.udpserializer.EndianType
class pyogp.lib.base.message.udpserializer.MsgType
classmethod MVT_as_string(typenum)
class pyogp.lib.base.message.udpserializer.TemplateDictionary(template_list=None, message_template=None)

the dictionary with all known templates

build_dictionaries(template_list)
build_message_ids()
get_template(template_name)
get_template_by_pair(frequency, num)
get_template_list()
class pyogp.lib.base.message.udpserializer.DataPacker
pack_data(data, data_type, endian_type='')
class pyogp.lib.base.message.udpserializer.UDPMessageSerializer(message_template=None)

an adpater for serializing a IUDPMessage into the UDP message format

This class builds messages at its high level, that is, keeping that data in data structure form. A serializer should be used on the message produced by this so that it can be sent over a network.

initialize the adapter

build_block(template_block, message_data)
serialize(context)
Builds the message by serializing the data. Creates a packet ready to be sent.
set_current_template()
establish the template for the current packet