You should also consider a WCF service with tcp
http://sholliday.spaces.live.com/Blog/cns!A68482B9628A842A!158.entry
That is a quick demo I wrote up............that gives you "true" DotNet
objects on both sides of the "wire".
"chrisben" <(E-Mail Removed)> wrote in message
news:04577027-6283-42FF-A9E7-(E-Mail Removed)...
> thanks. the link is helpful.
>
> "sloan" wrote:
>
>>
>> http://www.informit.com/guides/conte...net&seqNum=210
>> The binary formatter produces the smallest serialization stream.
>>
>>
>>
>>
>>
>> "chrisben" <(E-Mail Removed)> wrote in message
>> news:7F296AAD-211E-498B-970D-(E-Mail Removed)...
>> > Hi,
>> >
>> > I have a bunch of data with basic structure as
>> > class A{
>> > public string;
>> > public float:
>> > public DateTime;
>> > public int;
>> > }
>> >
>> > I originally pass it by socket as a xml string. However, due the large
>> > volume of data and limited bandwidth, it seems not an efficient way. So
>> > in
>> > C#, what is the best way to pass the data in socket with a compressed
>> > size?
>> > Thanks
>> >
>> > Chris
>>
>>
>>