title: How to implement client-server udp multicast in one program?
body: <p>I have written a server and a client both as separate apps. They communicate through UDP Multicast (becouse I need that everyone who joins the group can read &amp; write messages). Now I have two windows, but my aim is to create one simple chat program, but I don't know how to listen and send at the same time. Do I need to create 2 sockets? Or can I use just one? I've even tried to merge both apps in one, but I didn't succeeded (I know, I know.. but I was kinda desperate).</p>
  
  <p>I've searched google for a tut, but didn't succeeded.</p>
  
  <p>I'm using c++.</p>