i’m developing an application that is listening to tcp to get some xml data coming from other devices.
i’m use sniffing c# code, and i can sniff all the packets. my problem is that in every packet i can find a Piece of the data in every packet.
like this:
1 packet from ip41 data:<
2 packet from ip41 data:?xml versi
3 packet from ip41 data:on="1.0"
1 packet from ip35 data:< ?xml
4 packet from ip41 data:encoding="UTF-8
the real data looks like this:
<?xml version="1.0" encoding="UTF-8"?><alarm><datetime>2010-07-18T11:14:22Z</datetime><textch><textchid>020</textchid></textch><rule>DIR-020</rule><text>020-DIR-Intersection3_Magles_TCS6</text></alarm>
i want to be able to get the data in a string like the real data, not in pieces.
is there is a method or a library in .net that can do that?
i did it by monitoring one port by thread..and Assembly them by sequence number.
thanks for all your help