I have devices. Each one sends data to (server IP-address) over a particular port in a random time. Because it's an alarm device and it’s possible that more than one device fired in the same time. The data is in XML Format.
Now I already got a small windows application which listen for the data But I got a few problems
- problem is that the application is sniffing the packets. Mean that I can get the data in the TCP packets ....that’s mean that I will get the XML divided in the packets And not in sequence (order by time)...that’s make it so hard to read the XML data Or just arrange it and read from it. I need to read that data coming from the device and save it in XML format. even if I'm listening to one device , packets not coming in order
Any idea how to do that. I saw some other Questions here and I tried all this answers but nothing talking about reading the XML file. I’m using the same code as in this article