title: How should I implement peer-to-peer networking in C++?
body: <p>I have previously implemented server/client networking programs in C, but I have never done peer-to-peer program or any socket programming in C++.</p>
  
  <p>For peer-to-peer, I guess I would have to create multiple threads and manage incoming and outgoing connections, since each program will work like a client and a server at the same time, right?</p>
  
  <p>What would be a good way to implement this in C++? I believe C++ does not natively support threading...</p>