Author Topic: no socketselect() on OSX  (Read 1977 times)

FilE

  • Not-a-newbie
  • *
  • Posts: 13
  • Karma: 0
  • IPCurve Developer
    • View Profile
no socketselect() on OSX
« on: September 16, 2007, 11:30:08 AM »
The socketselect() method is not availible on OSX. This leads to a compile-time error in TCPInterface.cpp, line #406.

Solution: use select() instead as it is done for win32:
Code: [Select]
#ifdef _WIN32
                selectResult=select(largestDescriptor+1, &readFD, 0, &exceptionFD, &tv);
#else
#ifdef __APPLE__
                selectResult=select(largestDescriptor+1, &readFD, 0, &exceptionFD, &tv);
#else
                selectResult=socketselect(largestDescriptor+1, &readFD, 0, &exceptionFD, &tv);
#endif
#endif

Just trying to switch my project to RakNet.

/FilE
lorem ipsium dolor sit et amet...