|
From: Michael B. <beh...@us...> - 2009-06-30 21:00:54
|
Am Mittwoch, 24. Juni 2009 19:03:19 schrieb George Dita: > Hi all, > > I had some problems with traci when I started to work with sumo and now I > bumped into them again. I use the storage and socket classes provided by > shawn ans sumo 10.0.2. > > The problemm is that the format of the command (the response from sumo to > be exact is not the way it's specified in the documentation). > > Every time I receive a response I get, in the same tcp response (storage > class) the response message, and then, the actual response. I am not that much of an TCP expert but it seems like a valid behavior to me. Those are just two separate messages. The total length of the message is already consumed by the implementation of the storage class (at least if you are using the c++ client code). Maybe it is easier to understand if you have a look at the python client in tools/traci/traciControl.py (may need current SVN or browse the current source at soruceforge). _recvExact consumes the total length and returns a storage containing the messages. Regards, Michael |