I haven't done networking in C++, so take whatever I say with a grain of salt. I know I've seen a couple cppcon videos on it, but I don't know if they'd really be useful to watch for this. Here's
one by Michael Caisse on the Networking TS, maybe there's a Boost library that does a similar thing. I think there is a Boost library for networking, but I can't remember what it is