WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Network format (https://forum.worldviz.com/showthread.php?t=2330)

Enlil 10-20-2009 01:28 PM

Network format
 
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:
Code:

data = cPickle.loads(rawData)
The variable data should be a tuple containing:
  1. The senders computer name
  2. A tuple containing the positional data from the .send() command
  3. A dictionary containing keyword data from the .send() command


All times are GMT -7. The time now is 12:11 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC