Listing 5: Server code to start listener threads
for (int i=0; i<NumThreads; i++) { unsigned Tid; ppThread[i] = new srv_cThread("\\\\.\\PIPE\\MYPIPE.PIP", hEventShutdown, ClientConnectTimeOut); phThread[i] = (HANDLE) _beginthreadex(NULL, 0, ServerThread, ppThread[i], 0, &Tid); if (!phThread[i]) { printf("Failure: _beginthreadex() -- errno = %u\n", _errno); } } //End of File