[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Tiraman

9/7/2004 8:06:00 PM

Hi,

I have a client Server Application which was write in vb.net

i m using the TcpClient Object And A StreamWriter To Send a message to the
client but i would like to

send other objects but for strings like arrays, my own objects and so on.

how can i do that ?

Thanks.

T:-)


1 Answer

Ken Kolda

9/7/2004 8:22:00 PM

0

You will need to serialize these values, e.g. using the BinaryFormatter, and
then send the serialized representation across the wire. On the other end,
deserialize the value back into the original object. Of course, this makes
the assumption your objects are all nicely serializable.

Alternatively, you could switch over to use Remoting, in which case all of
this is built-in. Plus, you'd be able to call objects remotely (which would
be must more complicated to implement yourself).

Ken


"Tiraman :-)" <tiraman@netvision.net.il> wrote in message
news:%23eR6a2QlEHA.3824@TK2MSFTNGP12.phx.gbl...
> Hi,
>
> I have a client Server Application which was write in vb.net
>
> i m using the TcpClient Object And A StreamWriter To Send a message to the
> client but i would like to
>
> send other objects but for strings like arrays, my own objects and so on.
>
> how can i do that ?
>
> Thanks.
>
> T:-)
>
>