title: How to send file from server to multiple clients at a time in mfc using sockets?
body: <p>I am making simple one on server side &amp; one on client side application for transfering file from one location to another location or from one computer to another computer if computers are in network.</p>
  
  <p>I used the code from <a href="http://www.codeproject.com/KB/IP/SocketFileTransfer.aspx" rel="nofollow noreferrer">http://www.codeproject.com/KB/IP/SocketFileTransfer.aspx</a>. It is working &amp; file transfered successfully.</p>
  
  <p>But i need to transfer file from server to multiple clients at a time. I mean on server, there should be more than two client can connect &amp; they can receive file at same time.</p>
  
  <p>I don't know how to maintain queue for that &amp; how to pass <strong>CSocket</strong> object to method using Threading &amp; any other way.</p>
  
  <p>I also don't know how to prepare queue of CSocket objects.</p>
  
  <p>So, please if you have any solution or alternative way then please tell me....</p>