WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 10-20-2009, 01:28 PM
Enlil Enlil is offline
Member
 
Join Date: May 2008
Posts: 61
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
Reply With Quote
  #2  
Old 10-21-2009, 09:30 AM
Enlil Enlil is offline
Member
 
Join Date: May 2008
Posts: 61
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
Reply With Quote
  #3  
Old 10-23-2009, 10:29 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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 <network>.send() command
  3. A dictionary containing keyword data from the <network>.send() command
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using 5DT plug-in with the data coming through network... mcicek Vizard 1 05-18-2009 05:17 PM
continually losing network license ad_astra Vizard 1 11-30-2007 02:48 PM
Best image format Pastscapian Vizard 2 10-09-2006 10:44 AM
White Fullscreen crash when running network version Dbuckland Vizard 6 04-19-2006 02:49 PM
more advanced network examples? halley Vizard 0 04-05-2006 07:07 AM


All times are GMT -7. The time now is 12:17 AM.


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