| | |
Deserialize different types of objects from a NetworkStream
Please support our VB.NET advertiser: Programming Forums - DaniWeb Sister Site
![]() |
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.
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.
![]() |
Other Threads in the VB.NET Forum
- Previous Thread: Createuserwizard not working?
- Next Thread: How to resize images at runtime using mouse...
Views: 471 | Replies: 0
| Thread Tools | Search this Thread |
Tag cloud for VB.NET
.net 2005 2008 access account application arithmetic array arrays basic bing button buttons c# center check checkbox code combobox component convert crystalreport data database databasesearch datagrid datagridview design designer dissertation dissertations dropdownlist excel file-dialog folder ftp generatetags google gridview hardcopy highlighting images inline insert installer intel internet listview mobile monitor ms net networking output passingparameters peertopeervideostreaming picturebox picturebox1 plugin port print printing problem problemwithinstallation project save searchbox searchvb.net select serial server soap sorting studio syntax table tcp text textbox time timer toolbox trim update updown user vb vb.net vb.netcode vb.netformclosing()eventpictureboxmessagebox vb2008 vbnet view visual visualbasic visualbasic.net visualstudio visualstudio2008 web wpf





