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

前端 未结 9 942
闹比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条回答
  •  萌比男神i
    2021-02-01 12:06

    You may want to take a look to cpp-sockets, a C++ wrapper for the sockets system calls. It works with many operating systems (Win32, POSIX, Linux, *BSD). I don't think it will work with z/OS but you can take a look at the include files it uses and you'll have many examples of tested code that works well on other OSs.

提交回复
热议问题