I am recieving XML-Datas from server which is like:
<SystemAsync timestamp="1289734897" status="stopped" time="0"/>
or :
<SystemAsync timestamp="1289734897" status="stopped" time="0">
<AntTable antstatus="ready" active="1"/>
</SystemAsync>
There is no problem parsing the xml. But server can send the xml-data in 2 splitted parts
1.part of xml-data
<SystemAsync timestamp="1289734897" status="stopped" time="0">
<AntTable antstatus="ready" active="1"/>
2.part of xml data:
</SystemAsync>
How can I check, if the xml data is not ended, so I can wait for 2. part.?
This is an Server/Client Socket System.
My server recieves XML-Datas from the rootserver, and sends the xml-data to all clients.
Thank you!
The server needs to delimit the message it’s sending. It basically needs to tell you when it’s done.
Basing your code on “when do I stop getting an exception” is not a good idea. What if you never stop getting an exception?