void socketProcess(int sid) { socket_t *sp; int all; all = 0; if (sid < 0) { all = 1; sid = 0; } /* * Process each socket */ for (; sid < socketMax; sid++) { if ((sp = socketList[sid]) == NULL) { if (! all) { break; } else { continue; } } if (socketReady(sid)) { socketDoEvent(sp); } if (! all) { break; } } }
PUBLIC void socketProcess() { WebsSocket *sp; int sid; for (sid = 0; sid < socketMax; sid++) { if ((sp = socketList[sid]) != NULL) { if (sp->currentEvents & sp->handlerMask) { socketDoEvent(sp); } } } }