How to use the C socket API in C++ on z/OS

前端 未结 9 790
闹比i
闹比i 2021-02-01 11:23

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

9条回答
  •  生来不讨喜
    2021-02-01 11:59

    The _OE_SOCKETS appears to be simply to enable/disable the definition of socket-related symbols. It is not uncommon in some libraries to have a bunch of macros to do that, to assure that you're not compiling/linking parts not needed. The macro is not standard in other sockets implementations, it appears to be something specific to z/OS.

    Take a look at this page:
    Compiling and Linking a z/VM C Sockets Program

提交回复
热议问题