Hello all and Bruce,
to see and learn, how a string (XML) arrives to a SimpleServer, I added DebugOutputs to .Process()
What I saw in DebugView is that the branche
case self.Packet.PacketType
of NET:SimplePartialDataPacket
gets hit several times. Sometimes I see 3, sometimes 4 hits, but only the first hit holds the received data in self.Packet.BinData. The subsequent ones were obviouly empty.
Anyway, it makes me a bit nervous to see .Process() acting so many times.
Other than the webserver, which has unlimited packet size, teh SimpleServer is restricted to 16k. I want to make sure that I receive all data of that XML. My idea was to collect and concatenate each incoming packet into a StringTheory object until a specific substring "</root>" is detected. Then I know I got it all.
But the fact that PartialDataPacket reports incoming data several times, albeit they are empty, makes me hesitating.
Or is this something I can ignore?
tia
Wolfgang