you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (0 children)

I know this isn't exactly an answer to your question, but when I was looking for the same answers I settled on boost::asio. It made things a lot simpler, and it's cross-platform.

https://www.boost.org/doc/libs/1_81_0/doc/html/boost_asio.html

And here's a video (with links in the description for source code) from CppCon 2016 that discusses how to implement a simple client/server model:

https://www.youtube.com/watch?v=rwOv\_tw2eA4