Deserialize different types of objects from a NetworkStream

Please support our VB.NET advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jan 2008
Posts: 10
Reputation: Ossehaas is an unknown quantity at this point 
Solved Threads: 0
Ossehaas's Avatar
Ossehaas Ossehaas is offline Offline
Newbie Poster

Deserialize different types of objects from a NetworkStream

 
0
  #1
Feb 21st, 2009
Hi, I have a question. I'm studying MCTS Application Development Foundation .NET 2.0 VB and I have a Server - Client Messenger app to exchange text. One NetworkStream is used both for reading and writing the strings.

Now I want to exchange different types of objects to and from the server, (like a registration object, a profile object or maybe an image) . Is it possible to use the same NetworkStream used for the text and filter it by type or do I have to use different networkstreams and/or listen to different incomming ports?

How can a server know what to expect if different types of Serialized objects can be send?

I hope someone can help me or point me in the right direction.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the VB.NET Forum


Views: 471 | Replies: 0
Thread Tools Search this Thread



Tag cloud for VB.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC