I was working on some example that will show C++17 features and stream sockets handling. I was trying to do it in functional style. This is the result:

https://github.com/pantadeusz/hello-cpp-network-sockets

There is README that shows how to compile it.