WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Creating packets for viz.net (https://forum.worldviz.com/showthread.php?t=3712)

dbrateris 04-13-2011 08:05 PM

Creating packets for viz.net
 
Hi all,

I need to send data to vizard, prefferably in a manner that will trigger a NETWORK_EVENT so that I can use a callback to process the data. I have successfully setup network comm between two computers running vizard, very easy actually, but I need to setup network comm between vizard and a different platform, specifically from an apple iPad. I have successfully connected from the iPad to the vizard udp socket waiting at port 4950 but cannot get the NETWORK_EVENT to actually be called.

The problem, I believe is that vizard expects the udp packet to be in a specific format, so that variables and the like can be extracted out from the packet.

What I need to know, and wondering if someone knows the answer, is how to format the data in the udp packet so that vizard will successfully parse the packet and fire a NETWORK_EVENT

Any help would be greatly appreciated,
Thanks,
Dan

farshizzo 04-13-2011 08:36 PM

The udp packets are encoded using the Python pickle module. I would recommend using the socket module instead, and handling the raw data yourself. The following post contains sample code for doing this:

http://forum.worldviz.com/showthread.php?t=1126


All times are GMT -7. The time now is 08:15 AM.

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