| GStreamer Good Plugins 0.10 Plugins Reference Manual | ||||
|---|---|---|---|---|
"bytes-served" guint64 : Read "bytes-to-serve" guint64 : Read "clients" gchar* : Read / Write "closefd" gboolean : Read / Write "sock" gint : Read "sockfd" gint : Read / Write "auto-multicast" gboolean : Read / Write
"add" : Run Last "clear" : Run Last "client-added" : Run Last "client-removed" : Run Last "get-stats" : Run Last "remove" : Run Last
| plugin | udp |
| author | Wim Taymans <wim.taymans@gmail.com> |
| class | Sink/Network |
| name | sink |
| direction | sink |
| presence | always |
| details | ANY |
typedef struct {
int *sock;
struct sockaddr_in theiraddr;
struct ip_mreq multi_addr;
gchar *host;
gint port;
/* Per-client stats */
guint64 bytes_sent;
guint64 packets_sent;
guint64 connect_time;
guint64 disconnect_time;
} GstUDPClient;
bytes-served" property"bytes-served" guint64 : Read
Total number of bytes send to all clients.
Default value: 0
bytes-to-serve" property"bytes-to-serve" guint64 : Read
Number of bytes received to serve to clients.
Default value: 0
clients" property"clients" gchar* : Read / Write
A comma separated list of host:port pairs with destinations.
Default value: NULL
closefd" property"closefd" gboolean : Read / Write
Close sockfd if passed as property on state change.
Default value: TRUE
sock" property"sock" gint : Read
Socket currently in use for UDP sending. (-1 == no socket).
Allowed values: >= -1
Default value: -1
sockfd" property"sockfd" gint : Read / Write
Socket to use for UDP sending. (-1 == allocate).
Allowed values: >= -1
Default value: -1
void user_function (GstMultiUDPSink *gstmultiudpsink, gchar *host, gint port, gpointer user_data) : Run Last
Add a client with destination host and port to the list of
clients.
gstmultiudpsink : |
the sink on which the signal is emitted |
host : |
the hostname/IP address of the client to add |
port : |
the port of the client to add |
user_data : |
user data set when the signal handler was connected. |
void user_function (GstMultiUDPSink *gstmultiudpsink, gpointer user_data) : Run Last
Clear the list of clients.
gstmultiudpsink : |
the sink on which the signal is emitted |
user_data : |
user data set when the signal handler was connected. |
void user_function (GstMultiUDPSink *gstmultiudpsink, gchar *host, gint port, gpointer user_data) : Run Last
Signal emited when a new client is added to the list of clients.
gstmultiudpsink : |
the sink emitting the signal |
host : |
the hostname/IP address of the added client |
port : |
the port of the added client |
user_data : |
user data set when the signal handler was connected. |
void user_function (GstMultiUDPSink *gstmultiudpsink, gchar *host, gint port, gpointer user_data) : Run Last
Signal emited when a client is removed from the list of clients.
gstmultiudpsink : |
the sink emitting the signal |
host : |
the hostname/IP address of the removed client |
port : |
the port of the removed client |
user_data : |
user data set when the signal handler was connected. |
GValueArray* user_function (GstMultiUDPSink *gstmultiudpsink, gchar *host, gint port, gpointer user_data) : Run Last
Get the statistics of the client with destination host and port.
gstmultiudpsink : |
the sink on which the signal is emitted |
host : |
the hostname/IP address of the client to get stats on |
port : |
the port of the client to get stats on |
user_data : |
user data set when the signal handler was connected. |
| Returns : | a GValueArray of uint64: bytes_sent, packets_sent, connect_time (in epoch seconds), disconnect_time (in epoch seconds) |
void user_function (GstMultiUDPSink *gstmultiudpsink, gchar *host, gint port, gpointer user_data) : Run Last
Remove the client with destination host and port from the list of
clients.
gstmultiudpsink : |
the sink on which the signal is emitted |
host : |
the hostname/IP address of the client to remove |
port : |
the port of the client to remove |
user_data : |
user data set when the signal handler was connected. |