Creates a new #GstNetTimePacket from a buffer received over the network. The
caller is responsible for ensuring that buffer
is at least
#GST_NET_TIME_PACKET_SIZE bytes long.
If buffer
is %NULL, the local and remote times will be set to
#GST_CLOCK_TIME_NONE.
MT safe. Caller owns return value (gst_net_time_packet_free to free).
a buffer from which to construct the packet, or NULL
the local time when this packet was sent
the remote time observation
Make a copy of packet
.
Free packet
.
Sends a #GstNetTimePacket over a socket.
MT safe.
socket to send the time packet on
address to send the time packet to
Serialized a #GstNetTimePacket into a newly-allocated sequence of #GST_NET_TIME_PACKET_SIZE bytes, in network byte order. The value returned is suitable for passing to write(2) or sendto(2) for communication over the network.
MT safe. Caller owns return value (g_free to free).
Creates a new #GstNetTimePacket from a buffer received over the network. The
caller is responsible for ensuring that buffer
is at least
#GST_NET_TIME_PACKET_SIZE bytes long.
If buffer
is %NULL, the local and remote times will be set to
#GST_CLOCK_TIME_NONE.
MT safe. Caller owns return value (gst_net_time_packet_free to free).
a buffer from which to construct the packet, or NULL
Receives a #GstNetTimePacket over a socket. Handles interrupted system calls, but otherwise returns NULL on error.
Various functions for receiving, sending an serializing #GstNetTimePacket structures.