![]() |
![]() |
![]() |
GStreamer 0.10 Library Reference Manual | ![]() |
---|---|---|---|---|
GstNetTimeProviderGstNetTimeProvider — Special object that exposed the time of a clock on the network. |
#include <gst/net/gstnet.h> GstNetTimeProvider; GstNetTimeProvider* gst_net_time_provider_new (GstClock *clock, const gchar *address, gint port);
This object exposes the time of a GstClock on the network.
A GstNetTimeProvider is created with gst_net_time_provider_new()
which
takes a GstClock, an address and a port number as arguments.
After creating the object, a client clock such as GstNetClientClock can query the exposed clock over the network for its values.
The GstNetTimeProvider typically wraps the clock used by a GstPipeline.
Last reviewed on 2005-11-23 (0.9.5)
typedef struct { GstObject parent; } GstNetTimeProvider;
Opaque GstNetTimeProvider structure.
parent
;GstObjectparent
the parent object structure.
the parent object structure.
gchar *address
;gcharaddress
int port
;intport
int sock
;intsock
int control_sock
[2];intcontrol_sock
GThread *thread
;GThreadthread
GstClock *clock
;GstClockclock
GstObject parent ; |
the parent object structure. |
gchar *address ; |
|
int port ; |
|
int sock ; |
|
int control_sock [2]; |
|
GThread *thread ; |
|
GstClock *clock ; |
GstNetTimeProvider* gst_net_time_provider_new (GstClock *clock, const gchar *address, gint port);
Allows network clients to get the current time of clock
.
clock
:clock
a GstClock to export over the network
a GstClock to export over the network
GstClockGstClockaddress
:address
an address to bind on as a dotted quad (xxx.xxx.xxx.xxx), or NULL
to bind to all addresses
an address to bind on as a dotted quad (xxx.xxx.xxx.xxx), or NULL
to bind to all addresses
port
:port
a port to bind on, or 0 to let the kernel choose
a port to bind on, or 0 to let the kernel choose
Returns :Returns the new GstNetTimeProvider, or NULL on error
the new GstNetTimeProvider, or NULL on error
GstNetTimeProviderGstNetTimeProvider
clock : |
a GstClock to export over the network |
address : |
an address to bind on as a dotted quad (xxx.xxx.xxx.xxx), or NULL to bind to all addresses |
port : |
a port to bind on, or 0 to let the kernel choose |
Returns : | the new GstNetTimeProvider, or NULL on error |