NetTimeProvider

class NetTimeProvider(**properties: Any)

Superclasses: Object, InitiallyUnowned, Object

Implemented Interfaces: Initable

This object exposes the time of a Clock on the network.

A NetTimeProvider is created with new() which takes a Clock, an address and a port number as arguments.

After creating the object, a client clock such as NetClientClock can query the exposed clock over the network for its values.

The NetTimeProvider typically wraps the clock used by a Pipeline.

Constructors

class NetTimeProvider
classmethod new(clock: Clock, address: str | None, port: int) NetTimeProvider | None

Allows network clients to get the current time of clock.

Parameters:
  • clock – a Clock to export over the network

  • address – an address to bind on as a dotted quad (xxx.xxx.xxx.xxx), IPv6 address, or NULL to bind to all addresses

  • port – a port to bind on, or 0 to let the kernel choose

Properties

class NetTimeProvider
props.active: bool
props.address: str
props.clock: Clock
props.port: int
props.qos_dscp: int

Fields

class NetTimeProvider
parent
priv