I\'m having issues getting the C sockets API to work properly in C++ on z/OS.
Although I am including sys/socket.h, I still get compile time errors telling m
sys/socket.h
So try
#define _OE_SOCKETS
before you include sys/socket.h