WorldViz User Forum

WorldViz User Forum (
-   Vizard (
-   -   Creating packets for (

dbrateris 04-13-2011 08:05 PM

Creating packets for
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,

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:

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

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