How could it be Sending & Receiving Object of user class through Socket ?
-
Recently, I have developped a system on a network environment (Pc <--> PDA) that makes data transfere between these endpoints using WEBSERVICE mechanism. Unforunatley I have to cancel the way of WebService, cause of rarely-arising but undefined and unbearable slow-down of the communication. So I am planing to migrate my system to Socket mechanism. At the first look at Socket class, I see that it seems impossible to pass objects of my own-defined classes that represents the data structure. It seems no way to send/receive "Object" using nor Socket methods, neihter Streams via NetworkStream class. and I see that data transmission is completely based on "bytes" and "bytes & char arrays".. Or Am I wrong ?. (I hope so) What can I do? I just dont want to struggle with bytes. Instead using my existing classes, I just send my objects that includes only standart data types (int, bool, string) Thanks to all