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#

The type of the None singleton.

props.address: str#

The type of the None singleton.

props.clock: Clock#

The type of the None singleton.

props.port: int#

The type of the None singleton.

props.qos_dscp: int#

The type of the None singleton.

Fields#

class NetTimeProvider
parent#
priv#