gstrtsp.rtspwatch

Module for [RTSPWatch] class

class RTSPWatch

Types 1

Opaque RTSP watch object that can be used for asynchronous RTSP operations.

Fields
GstRTSPWatch * _cInstancePtr
bool owned
Methods
void * _cPtr()
uint attach(glib.main_context.MainContext context = null)Adds a #GstRTSPWatch to a context so that it will be executed within that context.
void getSendBacklog(out size_t bytes, out uint messages)Get the maximum amount of bytes and messages that will be queued in watch. See [gstrtsp.rtspwatch.RTSPWatch.setSendBacklog].
void reset()Reset watch, this is usually called after [gstrtsp.rtspconnection.RTSPConnection.doTunnel] when the file descriptors of the connection might have changed.
gstrtsp.types.RTSPResult sendMessage(gstrtsp.rtspmessage.RTSPMessage message, out uint id)Send a message using the connection of the watch. If it cannot be sent immediately, it will be queued for transmission in watch. The contents of message will then be serialized and transmitted when...
gstrtsp.types.RTSPResult sendMessages(gstrtsp.rtspmessage.RTSPMessage[] messages, out uint id)Sends messages using the connection of the watch. If they cannot be sent immediately, they will be queued for transmission in watch. The contents of messages will then be serialized and transmitted...
void setFlushing(bool flushing)When flushing is true, abort a call to [gstrtsp.rtspwatch.RTSPWatch.waitBacklog] and make sure [gstrtsp.rtspwatch.RTSPWatch.writeData] returns immediately with #GSTRTSPEINTR. And empty the queue.
void setSendBacklog(size_t bytes, uint messages)Set the maximum amount of bytes and messages that will be queued in watch. When the maximum amounts are exceeded, [gstrtsp.rtspwatch.RTSPWatch.writeData] and [gstrtsp.rtspwatch.RTSPWatch.sendMessag...
gstrtsp.types.RTSPResult waitBacklog(glib.time_val.TimeVal timeout)Wait until there is place in the backlog queue, timeout is reached or watch is set to flushing.
gstrtsp.types.RTSPResult waitBacklogUsec(long timeout)Wait until there is place in the backlog queue, timeout is reached or watch is set to flushing.
Constructors
this(void * ptr, Flag!"Take" take)