title: C++ SFML UDP Socket receiving and sending data to multiple clients
body: <p>I am trying to learn network socket programming basics and I can't understand some things. I have assignment to create working MMORPG server-client application where even up to 1000 clients can be connected at same time to server using SFML library. I started with some simple stuff like testing packets, sockets and making simple applications like chat in console and multiplayer tic-tac-toe for other assignment. I heard that using UDP sockets is way to go for real-time applications like games so I am trying to understand how does it work. In TCP Socket I am simply listening to connections, once client connects I can assign him to certain socket and keep listening for connections while I send data and identify him. </p>
  
  <p>I don't know how to identify clients using UDP socket. I am not even sure if my approach is right. </p>
  
  <p>I thought that it should work like this:</p>
  
  <p>1.I create UDP socket binding it to certain port.  </p>
  
  <p>2.I am making sure that client got permission to receive data from server.</p>
  
  <p>3.In loop I am receiving and sending packets from/to every client.</p>
  
  <p>4.If client get disconnected, we close connection for him/delete him from vector of clients.</p>
  
  <p>So how I do this with UDP sockets? Are they necessary for this kind of architecture ? Also I would appreciate any good article about making working client-server application with good protection and performance. Thanks in advance :)</p>