Watch
Object Hierarchy:
Description:
[ CCode ( has_type_id = false ) ]
[ Compact ]
[ GIR ( name = "RTSPWatch" ) ]
public class Watch
Opaque RTSP watch object that can be used for asynchronous RTSP operations.
Content:
Methods:
- public uint attach (MainContext context)
Adds a Watch to a context so that it will
be executed within that context.
- public void get_send_backlog (out size_t bytes, out uint messages)
Get the maximum amount of bytes and messages that will be queued in
this.
- public void reset ()
Reset this, this is usually called
after do_tunnel when the file descriptors of the connection might have
changed.
- public Result send_message (Message message, out uint id)
Send a message
using the connection of the
this.
- public Result send_messages (Message[] messages, out uint id)
Sends messages
using the connection of the
this.
- public void set_flushing (bool flushing)
- public void set_send_backlog (size_t bytes, uint messages)
Set the maximum amount of bytes and messages that will be queued in
this.
- public void unref ()
Decreases the reference count of this
by one.
- public Result wait_backlog (TimeVal timeout)
Wait until there is place in the backlog queue, timeout
is reached or this is set to flushing.
- public Result wait_backlog_usec (int64 timeout)
Wait until there is place in the backlog queue, timeout
is reached or this is set to flushing.
- public Result write_data (owned uint8[] data, out uint id)
Write data
using the connection of the
this.