I\'m trying to send multiple files over TCP using C# TcpClient, for a single file it works great, but when I have multiple files, it sends only the first one.
Here is my
you must close the stream after sending a file.
http://msdn.microsoft.com/en-us/library/system.net.sockets.tcpclient.getstream%28v=vs.71%29.aspx
"Note You must close the NetworkStream when you are through sending and receiving data. Closing TcpClient does not release the NetworkStream."