RTSPConnection.poll
gstrtsp.types.RTSPResult poll(gstrtsp.types.RTSPEvent events, out gstrtsp.types.RTSPEvent revents, glib.time_val.TimeVal timeout)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
events | a bitmask of #GstRTSPEvent flags to check |
revents | location for result flags |
timeout | a timeout |
Returns
#GST_RTSP_OK on success.