| 419 | } |
| 420 | |
| 421 | TCPSocket SocketSet::get(u32 index) |
| 422 | { |
| 423 | TCPSocket socket; |
| 424 | #if CROWN_PLATFORM_WINDOWS |
| 425 | CE_ENSURE(index < _priv->fdset.fd_count); |
| 426 | socket._priv->socket = _priv->fdset.fd_array[index]; |
| 427 | #else |
| 428 | CE_ENSURE((int)index < FD_SETSIZE); |
| 429 | socket._priv->socket = (int)index; |
| 430 | #endif |
| 431 | return socket; |
| 432 | } |
| 433 | |
| 434 | SelectResult SocketSet::select(u32 timeout_ms) |
| 435 | { |
no outgoing calls
no test coverage detected