I Have a socket-based server and I want to send a file from that server to all the connected I tried using on the server side
tcpClient.Client.SendFile(filename)
But how can I distinguish this message on the client-part? Beacause the normal communication protocol that I use is based on XML, and by sending a txt file for example it won't get parsed. Is there a method to capture on the client side the files send using "SendFile"?