NetTimePacket
Object Hierarchy:
Description:
public class NetTimePacket
Various functions for receiving, sending an serializing NetTimePacket structures. Last
reviewed on 2005-11-23 (0.9.5)
Namespace: Gst
Package: gstreamer-net-0.10
Content:
Static methods:
-
public static unowned NetTimePacket receive (int fd, void* addr, uint32 len)
Receives a NetTimePacket over a socket. Handles
interrupted system calls, but otherwise returns NULL on error. See recvfrom(2) for more information on how to interpret sockaddr
. MT safe. Caller owns return value (g_free to free).
Creation methods:
-
public NetTimePacket (uchar buffer)
Creates a new NetTimePacket from a buffer received
over the network. The caller is responsible for ensuring that buffer is at least
NET_TIME_PACKET_SIZE bytes long. If buffer is null
, the local and remote times will be set to
CLOCK_TIME_NONE. MT safe. Caller owns return value (g_free to free).
Methods:
-
public int send (int fd, void* addr, uint32 len)
-
public uchar serialize ()
Serialized a NetTimePacket into a newly-allocated
sequence of 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).
Fields: