ptpInit

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.

If clock_id is [gstnet.types.PTP_CLOCK_ID_NONE], a clock id is automatically generated from the MAC address of the first network interface.

This function is automatically called by [gstnet.ptp_clock.PtpClock.new_] with default parameters if it wasn't called before.

Parameters

clockIdPTP clock id of this process' clock or [gstnet.types.PTP_CLOCK_ID_NONE]
interfacesnetwork interfaces to run the clock on

Returns

true if the GStreamer PTP clock subsystem could be initialized.