Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(15)  |  Call(8)  |  Derive(0)  |  Import(7)

src/p/y/pyogp.apps-0.1dev/pyogp/apps/examples/parse_packets.py   pyogp.apps(Download)
import re
import traceback
from pyogp.lib.base.message.udpdeserializer import UDPMessageDeserializer
from pyogp.lib.base.settings import Settings
from logging import getLogger, StreamHandler, Formatter, CRITICAL, ERROR, WARNING, INFO, DEBUG
    if msg_buff != None:
        try:
            deserializer = UDPMessageDeserializer(settings = settings)
            packet = deserializer.deserialize(msg_buff)
            display_packet(packet, data, source)

src/p/y/pyogp.lib.base-0.1/pyogp/lib/base/message/tests/test_packetdata.py   pyogp.lib.base(Download)
from pyogp.lib.base.message.data import msg_tmpl
from pyogp.lib.base.message.udpdispatcher import UDPDispatcher
from pyogp.lib.base.message.udpdeserializer import UDPMessageDeserializer
from pyogp.lib.base.message.template_parser import MessageTemplateParser
from pyogp.lib.base.message.template_dict import TemplateDictionary
    def test_agent_data_update(self):
        """test if the agent data update packet can be decoded"""
        message = AGENT_DATA_UPDATE
        size = len(message)
        deserializer = UDPMessageDeserializer(settings = self.settings)
    def test_agent_animation(self):
        """test if the agent data update packet can be decoded"""
        message = AGENT_ANIMATION
        size = len(message)
        deserializer = UDPMessageDeserializer(settings = self.settings)
        message = OBJECT_UPDATE
 
        deserializer = UDPMessageDeserializer(settings = self.settings)
        packet = deserializer.deserialize(message)
        assert packet != None, "Wrong data"

src/p/y/pyogp.lib.base-0.1/pyogp/lib/base/message/tests/test_udp_deserializer.py   pyogp.lib.base(Download)
from pyogp.lib.base.message.msgtypes import MsgType
from pyogp.lib.base.message.message import Message, Block
from pyogp.lib.base.message.udpdeserializer import UDPMessageDeserializer
from pyogp.lib.base.message.udpserializer import UDPMessageSerializer
 
    def test_deserialize(self):
        message = '\xff\xff\xff\xfb' + '\x03' + \
                  '\x01\x00\x00\x00' + '\x02\x00\x00\x00' + '\x03\x00\x00\x00'
        message = '\x00' + '\x00\x00\x00\x01' +'\x00' + message
        deserializer = UDPMessageDeserializer(settings = self.settings)
        packed_data = serializer.serialize(msg)
 
        deserializer = UDPMessageDeserializer(settings = self.settings)
        packet = deserializer.deserialize(packed_data)
        data = packet.blocks

src/p/y/pyogp.lib.base-0.1/pyogp/lib/base/message/tests/test_udp_serializer.py   pyogp.lib.base(Download)
from pyogp.lib.base.settings import Settings
from pyogp.lib.base.message.msgtypes import MsgType
from pyogp.lib.base.message.udpdeserializer import UDPMessageDeserializer
from pyogp.lib.base.message.udpserializer import UDPMessageSerializer
 
    def test_serialize(self):
        message = '\xff\xff\xff\xfb' + '\x03' + \
                  '\x01\x00\x00\x00' + '\x02\x00\x00\x00' + '\x03\x00\x00\x00'
        message = '\x00' + '\x00\x00\x00\x01' +'\x00' + message
        deserializer = UDPMessageDeserializer(settings = self.settings)

src/p/y/pyogp.lib.client-0.1/pyogp/lib/client/tests/test_objects.py   pyogp.lib.client(Download)
 
# pyogp messaging
from pyogp.lib.base.message.udpdeserializer import UDPMessageDeserializer
from pyogp.lib.base.message.message import Message, Block
from pyogp.lib.base.message.message_handler import MessageHandler
        self.settings.ENABLE_DEFERRED_PACKET_PARSING = False
 
        self.deserializer = UDPMessageDeserializer(settings = self.settings)
 
        self.region = Region()

src/p/y/pyogp.lib.client-0.1/pyogp/lib/client/tests/test_appearance.py   pyogp.lib.client(Download)
from pyogp.lib.base.datatypes import *
# pyogp messaging
from pyogp.lib.base.message.udpdeserializer import UDPMessageDeserializer
 
# pyogp tests

src/p/y/pyogp.lib.base-0.1/pyogp/lib/base/message/tests/test_message_wrapper.py   pyogp.lib.base(Download)
from pyogp.lib.base.message.msgtypes import MsgType
from pyogp.lib.base.message.message import Message, Block
from pyogp.lib.base.message.udpdeserializer import UDPMessageDeserializer