Search:
Namespaces
Discussions
.NET v1.1
Feedback
Sockets Question
Messages
Related Types
This message was discovered on
microsoft.public.dotnet.framework.remoting
.
Post a new message to this list...
Tiraman :-\)
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:-)
Reply to this message...
Ken Kolda
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 :-)" <
Click here to reveal e-mail address
> wrote in message
news:%
Click here to reveal e-mail address
...
[Original message clipped]
Reply to this message...
System.IO.StreamWriter
System.Net.Sockets.TcpClient
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com