WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #15  
Old 05-03-2005, 03:02 AM
sjroorda sjroorda is offline
Member
 
Join Date: Apr 2005
Posts: 13
Thank you for the code; I ported it to Delphi and everything works fine! However, I tested somewhat, and I got a curious case regarding the way of sending commands like these. The general structure of a network package to be sent is as follows:

{sender}{type of information}{information itself}

all fields added with 0-bytes up to a multiple of 4 bytes. Example (seperated by newlines for readability):

sender#0#0
,ss#0
test1#0#0#0
test2#0#0#0

Type of information is, for example, ,ss if 2 strings are sent, ,ii if two integers are send and ,lii if an array of 2 integers is sent. However, consider these two cases:

myNetwork.send([1,2,3,'s','test']);
myNetwork.send([1,2,3,'s'],'test');

Both send ,liiiss as type! How do I know, if I want to process information sent by Vizard, which data really was sent? Vizard understands, regarding a 'print msg'.

Despite my continuing flow of maybe far too technical questions: thanks for the good and quick support
Reply With Quote
 

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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


All times are GMT -7. The time now is 09:25 PM.


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