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
When the function returns with OK,
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.
a bitmask of Event flags to check
location for result flags
OK on success.