RTSPConnection.pollUsec

gstrtsp.types.RTSPResult pollUsec(gstrtsp.types.RTSPEvent events, out gstrtsp.types.RTSPEvent revents, long timeout) nothrow

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 0, 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 in microseconds

Returns

#GST_RTSP_OK on success.