The C++ Standard does not have a socket API.
The GNU libC documentation contains examples of UDP and TCP clients and servers, which I often use when putting another server together from scratch. Alternatively, you might utilise the Boost.ASIO library for a more C++-focused experience.