Networking in C++ is famously difficult. By using the Boost TCP::Iostreams library, we are able to make it as simple as doing cin and cout, or writing to a file.
You still have to worry about deadlock, and have to make a protocol for talking between clients and servers, but at least the coding syntax is understandable by a first year programmer.