Gst.Net
Description:
Content:
Classes:
- ClientClock - ClientClock implements a custom Clock that synchronizes its time to a remote time provider such as TimeProvider.
- NtpClock
- PtpClock - GstPtpClock implements a PTP ( IEEE1588:2008) ordinary clock in slave-only mode, that allows a GStreamer pipeline to synchronize to a PTP network clock in some specific domain.
- TimePacket - Various functions for receiving, sending an serializing TimePacket structures.
- TimeProvider - This object exposes the time of a Clock on the network.
Structs:
- AddressMeta - AddressMeta can be used to store a network address (a SocketAddress ) in a Buffer so that it network elements can track the to and from address of the buffer.
- ControlMessageMeta - ControlMessageMeta can be used to store control messages (ancillary data) which was received with or is to be sent alongside the buffer data.
Constants:
- public const uint64 PTP_CLOCK_ID_NONE
PTP clock identification that can be passed to ptp_init to automatically select one based on the MAC address of interfaces
- public const string PTP_STATISTICS_BEST_MASTER_CLOCK_SELECTED
- public const string PTP_STATISTICS_NEW_DOMAIN_FOUND
- public const string PTP_STATISTICS_PATH_DELAY_MEASURED
- public const string PTP_STATISTICS_TIME_UPDATED
Delegates:
- public delegate bool PtpStatisticsCallback (uint8 domain, Structure stats)
The statistics can be the following structures:
Functions:
- public Type address_meta_api_get_type ()
- public unowned MetaInfo? address_meta_get_info ()
- public unowned AddressMeta? buffer_add_net_address_meta (Buffer buffer, SocketAddress addr)
Attaches
addr
as metadata in a AddressMeta tobuffer
. - public unowned ControlMessageMeta? buffer_add_net_control_message_meta (Buffer buffer, SocketControlMessage message)
Attaches
message
as metadata in a ControlMessageMeta tobuffer
. - public unowned AddressMeta? buffer_get_net_address_meta (Buffer buffer)
Find the AddressMeta on
buffer
. - public Type control_message_meta_api_get_type ()
- public unowned MetaInfo? control_message_meta_get_info ()
- public void ptp_deinit ()
Deinitialize the GStreamer PTP subsystem and stop the PTP clock.
- public bool ptp_init (uint64 clock_id, string[]? interfaces)
Initialize the GStreamer PTP subsystem and create a PTP ordinary clock in slave-only mode for all domains on the given
interfaces
with the givenclock_id
. - public bool ptp_is_initialized ()
Check if the GStreamer PTP clock subsystem is initialized.
- public bool ptp_is_supported ()
Check if PTP clocks are generally supported on this system, and if previous initializations did not fail.
- public ulong ptp_statistics_callback_add (owned PtpStatisticsCallback callback)
Installs a new statistics callback for gathering PTP statistics.
- public void ptp_statistics_callback_remove (ulong id)
Removes a PTP statistics callback that was previously added with ptp_statistics_callback_add.
- public TimePacket time_packet_receive (Socket socket, out SocketAddress src_address) throws Error
Receives a TimePacket over a socket.
- public bool utils_set_socket_tos (Socket socket, int qos_dscp)
Configures IP_TOS value of socket, i.