RTSPConnection.poll

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 #GST_RTSP_OK, revents will contain a bitmask of available operations on conn.

timeout can be null, in which case this function might block forever.

This function can be cancelled with [gstrtsp.rtspconnection.RTSPConnection.flush].

Parameters

eventsa bitmask of #GstRTSPEvent flags to check
reventslocation for result flags
timeouta timeout

Returns

#GST_RTSP_OK on success.