PDA

View Full Version : Network format


Enlil
10-20-2009, 01:28 PM
Hello, I am writing a C# application that communicates with a vizard program, and looking at the message sent from the vizard program, the format looks pretty complex! I am not too worried about parsing the vizard message in C#, but am not so sure about writing the code to send a UDP packet from C# to Vizard that the vizard networking accepts.

So, I was wondering, is there any documentation on the format?

Thank,
Christian

Enlil
10-21-2009, 09:30 AM
I looked into it further, and it turns out the message format is pickled - that is why it looks so odd. So I am working with IronPython to try to reverse the process and get at the data.

Christian

farshizzo
10-23-2009, 10:29 AM
The data that is transmitted by Vizard is pickled using the cPickle module. To get access to the data on your end you can use the following code:data = cPickle.loads(rawData)The variable data should be a tuple containing:
The senders computer name
A tuple containing the positional data from the <network>.send() command
A dictionary containing keyword data from the <network>.send() command