C++ networking

I’m trying to add a player class that has sensors for collisions in C++ and planning to put some networking code to it. How do I use sockets in C++?

You can take a look at the socket subsystem classes.