title: C++ How to implement interprocess socket communication?
body: <p>I would like to setup interprocess communication using sockets between a server and several client processes using C++. The server and all client processes will be running on the on the same Windows 7 computer. The intention is that a <code>std::vector</code> of data will be held by the server and transmitted to each client. From time-to-time the vector held by the server will be extended (<code>push_back()</code>) with further data elements and the extra data will need to be transmitted to each client.  Can anyone provide links to examples of how to do this, relevant reference materials or a simple 'toy' code example?</p>
  
  <p>EDIT:  After further investigation I have found that Winsock would be suitable.  There are plenty of examples revealed from a Google search on how to setup a Winsock server &amp; client arrangement.  HOWEVER there is less information on how to actually pass data through the sockets.  Can anyone expand on how to synchronize an <code>std::vector</code> between a server and clients through socket communication?  Each client would need to indicate which element index it has already been passed and the server would serve up only those elements which the client did not already have.</p>