#15
|
|||
|
|||
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 |
Thread Tools | |
Display Modes | Rate This Thread |
|
|