| 376 | } |
| 377 | |
| 378 | void unset(SOCKET handle) |
| 379 | { |
| 380 | #if defined(HAVE_POLL) |
| 381 | pollfd* pf = getPollFd(handle); |
| 382 | if (pf) |
| 383 | { |
| 384 | pf->events = 0; |
| 385 | } |
| 386 | #else |
| 387 | FD_CLR(handle, &slct_fdset); |
| 388 | --slct_count; |
| 389 | #endif |
| 390 | } |
| 391 | |
| 392 | void set(SOCKET handle) |
| 393 | { |