SocketSelector.wait

Wait until one or more sockets are ready to receive.

This function returns as soon as at least one socket has some data available to be received. To know which sockets are ready, use the isReady function. If you use a timeout and no socket is ready before the timeout is over, the function returns false.

Parameters timeout = Maximum time to wait, (use Time.Zero for infinity)

class SocketSelector
bool
wait
(
Time timeout = Time.Zero
)

Return Value

Type: bool

true if there are sockets ready, false otherwise.

Meta