gstnet.global

Global functions for gstnet1 library

Functions 13

fngstnet.net_address_meta.NetAddressMeta bufferAddNetAddressMeta(gst.buffer.Buffer buffer, gio.socket_address.SocketAddress addr)Attaches addr as metadata in a #GstNetAddressMeta to buffer.
fnbool netUtilsSetSocketTos(gio.socket.Socket socket, int qosDscp)Configures IP_TOS value of socket, i.e. sets QoS DSCP.
fnvoid ptpDeinit()Deinitialize the GStreamer PTP subsystem and stop the PTP clock. If there are any remaining GstPtpClock instances, they won't be further synchronized to the PTP network clock.
fnbool ptpInit(ulong clockId, string[] interfaces = null)Initialize the GStreamer PTP subsystem and create a PTP ordinary clock in slave-only mode for all domains on the given interfaces with the given clock_id.
fnbool ptpInitFull(gst.structure.Structure config)Initialize the GStreamer PTP subsystem and create a PTP ordinary clock in slave-only mode according to the config.
fnbool ptpIsInitialized()Check if the GStreamer PTP clock subsystem is initialized. Returns: true if the GStreamer PTP clock subsystem is initialized.
fnbool ptpIsSupported()Check if PTP clocks are generally supported on this system, and if previous initializations did not fail. Returns: true if PTP clocks are generally supported on this system, and previous initializa...
fngulong ptpStatisticsCallbackAdd(gstnet.types.PtpStatisticsCallback callback)Installs a new statistics callback for gathering PTP statistics. See GstPtpStatisticsCallback for a list of statistics that are provided.
fnvoid ptpStatisticsCallbackRemove(gulong id)Removes a PTP statistics callback that was previously added with [gstnet.global.ptpStatisticsCallbackAdd].