Click here to Skip to main content
15,893,663 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a list that I have serialized in a server like this:

BinaryFormatter formatter = new BinaryFormatter();
formatter.Serialize(NetworkStream, List);


and want to send it to the client using a TCP socket. How do I send that data, and how should the client be prepared to receive it. Any help will be appreciated. Also I'm new to using sockets, so please provide an example if possible.
Posted

This[^] may help.
 
Share this answer
 
Comments
Neil Cross 21-Oct-10 8:12am    
Thanks
If you are using .NET, why don't you just set up a WCF service and let the framework handle the serializing?
 
Share this answer
 
Comments
Neil Cross 21-Oct-10 7:28am    
Because I have no idea how
Nish Nishant 21-Oct-10 7:28am    
Hey Neil,

Start here : http://msdn.microsoft.com/en-us/library/aa480190.aspx

Once you get the hang of it, it's fairly easy to use WCF.
Nish Nishant 21-Oct-10 7:29am    
Ok, my comment was a reply to your comment but somehow it came above yours.
Neil Cross 21-Oct-10 8:12am    
Thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900