RakNet

RakNet => Feature Requests => Topic started by: FilE on September 16, 2007, 11:30:08 AM

Title: no socketselect() on OSX
Post by: FilE 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