How to use boost asio for multiple udp connections?
<p>In the application I am working on, hundreds of clients will connect to the server via UDP. The socket connection remains open for each client until the client decides to quit.</p>

<p>I downloaded boost's sample code for asynchronous udp server at <a href="http://www.boost.org/doc/libs/1_35_0/doc/html/boost_asio/tutorial/tutdaytime6/src.html" rel="nofollow">http://www.boost.org/doc/libs/1_35_0/doc/html/boost_asio/tutorial/tutdaytime6/src.html</a>.</p>

<p>From the code, a couple of things are not clear:</p>

<ol>
<li><p>As each connection is made from the client, I would like to save the IP of the incoming client. However, from the code, it is not obvious where I can put this logic.</p></li>
<li><p>It seems this code can only serve one client at a time. In my case, there will be many concurrent connections and the socket must be kept alive for each connection. How do I extend this code? Regards.</p></li>
</ol>