op_select()
Note: Requires Shared Code functionality
Abstract
Waits for one or more sockets to attain a specified condition.
Syntax
op_select (nfds, sockets, timeout)
| Argument | Type | Description |
|---|---|---|
nfds |
int |
Number of sockets to check |
sockets |
int * |
Array of socket IDs |
timeout |
struct timeval * |
Timeout duration |
Return Type
int
Returns 0.
Header
shared_code_support.h
Details
This function blocks until a packet is received or the timeout elapses.