Hi once again Standard C++ fail us again on business-centric API ! Usually for Unix we will use <socket.h> and in Windows we will use <winsock2.h>
Ideally there should be a SAME API just like Java but sad to say it is not in Standard C++. You can take a look at Boost.org as a lot of initiatives done there later make it to the Standard C++ specifications.
Mind that depending of your application you would prefer another class that already implements
some of the fuctionality you need, just use the search box in: