static void createSwitchFromOsSocket(TOsSocket const osSocket, TChanSwitch ** const chanSwitchPP, const char ** const errorP) { #ifdef _WIN32 ChanSwitchWinCreateWinsock(osSocket, chanSwitchPP, errorP); #else ChanSwitchUnixCreateFd(osSocket, chanSwitchPP, errorP); #endif }
static void chanSwitchCreateOsSocket(TOsSocket const socketFd, TChanSwitch ** const chanSwitchPP, const char ** const errorP) { #ifdef _WIN32 ChanSwitchWinCreateWinsock(socketFd, chanSwitchPP, errorP); #else ChanSwitchUnixCreateFd(socketFd, chanSwitchPP, errorP); #endif }