poll
Description:
[ Version ( deprecated = true , deprecated_since = "1.18" ) ]
public Result poll (Event events, out Event revents, TimeVal timeout)
public Result poll (Event events, out Event revents, TimeVal timeout)
Warning: poll is deprecated since 1.18.
Wait up to the specified timeout
for the connection to become available for at least one of the operations specified in
events
.
When the function returns with OK, revents
will
contain a bitmask of available operations on this.
timeout
can be null
, in which case this function might block forever.
This function can be cancelled with flush.
Parameters:
this | |
events |
a bitmask of Event flags to check |
revents |
location for result flags |
timeout |
a timeout |
Returns:
OK on success. |