send multiple file over TCP with C# using TcpClient
- by xnoor
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 code:
SENDING FILES
try
{
TcpClient tcpClient = new TcpClient();
NetworkStream networkStream;
FileStream fileStream = null;
…