NetTimePacket

Various functions for receiving, sending an serializing #GstNetTimePacket structures.

Constructors

this
this(ubyte[] buffer)

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.

Members

Functions

copy
gstnet.net_time_packet.NetTimePacket copy()

Make a copy of packet.

send
bool send(gio.socket.Socket socket, gio.socket_address.SocketAddress destAddress)

Sends a #GstNetTimePacket over a socket.

serialize
ubyte[] serialize()

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.

Static functions

receive
gstnet.net_time_packet.NetTimePacket receive(gio.socket.Socket socket, gio.socket_address.SocketAddress srcAddress)

Receives a #GstNetTimePacket over a socket. Handles interrupted system calls, but otherwise returns NULL on error.

Inherited Members

From Boxed

cInstancePtr
void* cInstancePtr;

Pointer to the C boxed value

getType
GType getType()

Get the GType of this boxed type.

gType
GType gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

copy_
void* copy_()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.