• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5<title>multisocketsink: GStreamer Base Plugins 1.0 Plugins Reference Manual</title>
6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7<link rel="home" href="index.html" title="GStreamer Base Plugins 1.0 Plugins Reference Manual">
8<link rel="up" href="ch01.html" title="gst-plugins-base Elements">
9<link rel="prev" href="gst-plugins-base-plugins-multifdsink.html" title="multifdsink">
10<link rel="next" href="gst-plugins-base-plugins-oggaviparse.html" title="oggaviparse">
11<meta name="generator" content="GTK-Doc V1.28 (XML mode)">
12<link rel="stylesheet" href="style.css" type="text/css">
13</head>
14<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
16<td width="100%" align="left" class="shortcuts">
17<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span18                  <a href="#gst-plugins-base-plugins-multisocketsink.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span19                  <a href="#gst-plugins-base-plugins-multisocketsink.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_properties">  <span class="dim">|</span20                  <a href="#gst-plugins-base-plugins-multisocketsink.properties" class="shortcut">Properties</a></span><span id="nav_signals">  <span class="dim">|</span21                  <a href="#gst-plugins-base-plugins-multisocketsink.signals" class="shortcut">Signals</a></span>
22</td>
23<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
24<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
25<td><a accesskey="p" href="gst-plugins-base-plugins-multifdsink.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
26<td><a accesskey="n" href="gst-plugins-base-plugins-oggaviparse.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
27</tr></table>
28<div class="refentry">
29<a name="gst-plugins-base-plugins-multisocketsink"></a><div class="titlepage"></div>
30<div class="refnamediv"><table width="100%"><tr>
31<td valign="top">
32<h2><span class="refentrytitle"><a name="gst-plugins-base-plugins-multisocketsink.top_of_page"></a>multisocketsink</span></h2>
33<p>multisocketsink</p>
34</td>
35<td class="gallery_image" valign="top" align="right"></td>
36</tr></table></div>
37<div class="refsect1">
38<a name="gst-plugins-base-plugins-multisocketsink.properties"></a><h2>Properties</h2>
39<div class="informaltable"><table class="informaltable" border="0">
40<colgroup>
41<col width="150px" class="properties_type">
42<col width="300px" class="properties_name">
43<col width="200px" class="properties_flags">
44</colgroup>
45<tbody>
46<tr>
47<td class="property_type"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td>
48<td class="property_name"><a class="link" href="gst-plugins-base-plugins-multisocketsink.html#GstMultiSocketSink--send-dispatched" title="The “send-dispatched” property">send-dispatched</a></td>
49<td class="property_flags">Read / Write</td>
50</tr>
51<tr>
52<td class="property_type"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td>
53<td class="property_name"><a class="link" href="gst-plugins-base-plugins-multisocketsink.html#GstMultiSocketSink--send-messages" title="The “send-messages” property">send-messages</a></td>
54<td class="property_flags">Read / Write</td>
55</tr>
56</tbody>
57</table></div>
58</div>
59<div class="refsect1">
60<a name="gst-plugins-base-plugins-multisocketsink.signals"></a><h2>Signals</h2>
61<div class="informaltable"><table class="informaltable" border="0">
62<colgroup>
63<col width="150px" class="signals_return">
64<col width="300px" class="signals_name">
65<col width="200px" class="signals_flags">
66</colgroup>
67<tbody>
68<tr>
69<td class="signal_type"><span class="returnvalue">void</span></td>
70<td class="signal_name"><a class="link" href="gst-plugins-base-plugins-multisocketsink.html#GstMultiSocketSink-add" title="The “add” signal">add</a></td>
71<td class="signal_flags"><a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-ACTION:CAPS">Action</a></td>
72</tr>
73<tr>
74<td class="signal_type"><span class="returnvalue">void</span></td>
75<td class="signal_name"><a class="link" href="gst-plugins-base-plugins-multisocketsink.html#GstMultiSocketSink-add-full" title="The “add-full” signal">add-full</a></td>
76<td class="signal_flags"><a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-ACTION:CAPS">Action</a></td>
77</tr>
78<tr>
79<td class="signal_type"><span class="returnvalue">void</span></td>
80<td class="signal_name"><a class="link" href="gst-plugins-base-plugins-multisocketsink.html#GstMultiSocketSink-client-added" title="The “client-added” signal">client-added</a></td>
81<td class="signal_flags"><a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS">Run Last</a></td>
82</tr>
83<tr>
84<td class="signal_type"><span class="returnvalue">void</span></td>
85<td class="signal_name"><a class="link" href="gst-plugins-base-plugins-multisocketsink.html#GstMultiSocketSink-client-removed" title="The “client-removed” signal">client-removed</a></td>
86<td class="signal_flags"><a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS">Run Last</a></td>
87</tr>
88<tr>
89<td class="signal_type"><span class="returnvalue">void</span></td>
90<td class="signal_name"><a class="link" href="gst-plugins-base-plugins-multisocketsink.html#GstMultiSocketSink-client-socket-removed" title="The “client-socket-removed” signal">client-socket-removed</a></td>
91<td class="signal_flags"><a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS">Run Last</a></td>
92</tr>
93<tr>
94<td class="signal_type">
95<a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstStructure.html#GstStructure-struct"><span class="returnvalue">GstStructure</span></a>*</td>
96<td class="signal_name"><a class="link" href="gst-plugins-base-plugins-multisocketsink.html#GstMultiSocketSink-get-stats" title="The “get-stats” signal">get-stats</a></td>
97<td class="signal_flags"><a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-ACTION:CAPS">Action</a></td>
98</tr>
99<tr>
100<td class="signal_type"><span class="returnvalue">void</span></td>
101<td class="signal_name"><a class="link" href="gst-plugins-base-plugins-multisocketsink.html#GstMultiSocketSink-remove" title="The “remove” signal">remove</a></td>
102<td class="signal_flags"><a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-ACTION:CAPS">Action</a></td>
103</tr>
104<tr>
105<td class="signal_type"><span class="returnvalue">void</span></td>
106<td class="signal_name"><a class="link" href="gst-plugins-base-plugins-multisocketsink.html#GstMultiSocketSink-remove-flush" title="The “remove-flush” signal">remove-flush</a></td>
107<td class="signal_flags"><a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-ACTION:CAPS">Action</a></td>
108</tr>
109</tbody>
110</table></div>
111</div>
112<a name="GstMultiSocketSink"></a><div class="refsect1">
113<a name="gst-plugins-base-plugins-multisocketsink.other"></a><h2>Types and Values</h2>
114<div class="informaltable"><table class="informaltable" width="100%" border="0">
115<colgroup>
116<col width="150px" class="name">
117<col class="description">
118</colgroup>
119<tbody><tr>
120<td class="datatype_keyword">struct</td>
121<td class="function_name"><a class="link" href="gst-plugins-base-plugins-multisocketsink.html#GstMultiSocketSink-struct" title="struct GstMultiSocketSink">GstMultiSocketSink</a></td>
122</tr></tbody>
123</table></div>
124</div>
125<div class="refsect1">
126<a name="gst-plugins-base-plugins-multisocketsink.object-hierarchy"></a><h2>Object Hierarchy</h2>
127<pre class="screen">    <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a>
128    <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
129        <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstObject.html#GstObject-struct">GstObject</a>
130            <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstElement.html#GstElement-struct">GstElement</a>
131                <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-libs-1.0/GstBaseSink.html#GstBaseSink-struct">GstBaseSink</a>
132                    <span class="lineart">╰──</span> GstMultiHandleSink
133                        <span class="lineart">╰──</span> GstMultiSocketSink
134                            <span class="lineart">╰──</span> <a class="link" href="gst-plugins-base-plugins-tcpserversink.html#GstTCPServerSink">GstTCPServerSink</a>
135</pre>
136</div>
137<div class="refsect1">
138<a name="gst-plugins-base-plugins-multisocketsink.description"></a><h2>Description</h2>
139<p>This plugin writes incoming data to a set of file descriptors. The
140file descriptors can be added to multisocketsink by emitting the <a class="link" href="gst-plugins-base-plugins-multisocketsink.html#GstMultiSocketSink-add" title="The “add” signal"><span class="type">“add”</span></a> signal.
141For each descriptor added, the <a class="link" href="gst-plugins-base-plugins-multisocketsink.html#GstMultiSocketSink-client-added" title="The “client-added” signal"><span class="type">“client-added”</span></a> signal will be called.</p>
142<p>A client can also be added with the <a class="link" href="gst-plugins-base-plugins-multisocketsink.html#GstMultiSocketSink-add-full" title="The “add-full” signal"><span class="type">“add-full”</span></a> signal
143that allows for more control over what and how much data a client
144initially receives.</p>
145<p>Clients can be removed from multisocketsink by emitting the <a class="link" href="gst-plugins-base-plugins-multisocketsink.html#GstMultiSocketSink-remove" title="The “remove” signal"><span class="type">“remove”</span></a> signal. For
146each descriptor removed, the <a class="link" href="gst-plugins-base-plugins-multisocketsink.html#GstMultiSocketSink-client-removed" title="The “client-removed” signal"><span class="type">“client-removed”</span></a> signal will be called. The
147<a class="link" href="gst-plugins-base-plugins-multisocketsink.html#GstMultiSocketSink-client-removed" title="The “client-removed” signal"><span class="type">“client-removed”</span></a> signal can also be fired when multisocketsink decides that a
148client is not active anymore or, depending on the value of the
149<span class="type">“recover-policy”</span> property, if the client is reading too slowly.
150In all cases, multisocketsink will never close a file descriptor itself.
151The user of multisocketsink is responsible for closing all file descriptors.
152This can for example be done in response to the <span class="type">“client-fd-removed”</span> signal.
153Note that multisocketsink still has a reference to the file descriptor when the
154<a class="link" href="gst-plugins-base-plugins-multisocketsink.html#GstMultiSocketSink-client-removed" title="The “client-removed” signal"><span class="type">“client-removed”</span></a> signal is emitted, so that "get-stats" can be performed on
155the descriptor; it is therefore not safe to close the file descriptor in
156the <a class="link" href="gst-plugins-base-plugins-multisocketsink.html#GstMultiSocketSink-client-removed" title="The “client-removed” signal"><span class="type">“client-removed”</span></a> signal handler, and you should use the
157<span class="type">“client-fd-removed”</span> signal to safely close the fd.</p>
158<p>Multisocketsink internally keeps a queue of the incoming buffers and uses a
159separate thread to send the buffers to the clients. This ensures that no
160client write can block the pipeline and that clients can read with different
161speeds.</p>
162<p>When adding a client to multisocketsink, the <span class="type">“sync-method”</span> property will define
163which buffer in the queued buffers will be sent first to the client. Clients
164can be sent the most recent buffer (which might not be decodable by the
165client if it is not a keyframe), the next keyframe received in
166multisocketsink (which can take some time depending on the keyframe rate), or the
167last received keyframe (which will cause a simple burst-on-connect).
168Multisocketsink will always keep at least one keyframe in its internal buffers
169when the sync-mode is set to latest-keyframe.</p>
170<p>There are additional values for the <span class="type">“sync-method”</span>
171property to allow finer control over burst-on-connect behaviour. By selecting
172the 'burst' method a minimum burst size can be chosen, 'burst-keyframe'
173additionally requires that the burst begin with a keyframe, and
174'burst-with-keyframe' attempts to burst beginning with a keyframe, but will
175prefer a minimum burst size even if it requires not starting with a keyframe.</p>
176<p>Multisocketsink can be instructed to keep at least a minimum amount of data
177expressed in time or byte units in its internal queues with the
178<span class="type">“time-min”</span> and <span class="type">“bytes-min”</span> properties respectively.
179These properties are useful if the application adds clients with the
180<a class="link" href="gst-plugins-base-plugins-multisocketsink.html#GstMultiSocketSink-add-full" title="The “add-full” signal"><span class="type">“add-full”</span></a> signal to make sure that a burst connect can
181actually be honored.</p>
182<p>When streaming data, clients are allowed to read at a different rate than
183the rate at which multisocketsink receives data. If the client is reading too
184fast, no data will be send to the client until multisocketsink receives more
185data. If the client, however, reads too slowly, data for that client will be
186queued up in multisocketsink. Two properties control the amount of data
187(buffers) that is queued in multisocketsink: <span class="type">“buffers-max”</span> and
188<span class="type">“buffers-soft-max”</span>. A client that falls behind by
189<span class="type">“buffers-max”</span> is removed from multisocketsink forcibly.</p>
190<p>A client with a lag of at least <span class="type">“buffers-soft-max”</span> enters the recovery
191procedure which is controlled with the <span class="type">“recover-policy”</span> property.
192A recover policy of NONE will do nothing, RESYNC_LATEST will send the most recently
193received buffer as the next buffer for the client, RESYNC_SOFT_LIMIT
194positions the client to the soft limit in the buffer queue and
195RESYNC_KEYFRAME positions the client at the most recent keyframe in the
196buffer queue.</p>
197<p>multisocketsink will by default synchronize on the clock before serving the
198buffers to the clients. This behaviour can be disabled by setting the sync
199property to FALSE. Multisocketsink will by default not do QoS and will never
200drop late buffers.</p>
201<div class="refsynopsisdiv">
202<h2>Synopsis</h2>
203<div class="refsect2">
204<a name="id-1.2.71.8.12.1"></a><h3>Element Information</h3>
205<div class="variablelist"><table border="0" class="variablelist">
206<colgroup>
207<col align="left" valign="top">
208<col>
209</colgroup>
210<tbody>
211<tr>
212<td><p><span class="term">plugin</span></p></td>
213<td>
214            <a class="link" href="gst-plugins-base-plugins-plugin-tcp.html#plugin-tcp">tcp</a>
215          </td>
216</tr>
217<tr>
218<td><p><span class="term">author</span></p></td>
219<td>Thomas Vander Stichele &lt;thomas at apestaart dot org&gt;, Wim Taymans &lt;wim@fluendo.com&gt;, Sebastian Dröge &lt;sebastian.droege@collabora.co.uk&gt;</td>
220</tr>
221<tr>
222<td><p><span class="term">class</span></p></td>
223<td>Sink/Network</td>
224</tr>
225</tbody>
226</table></div>
227</div>
228<hr>
229<div class="refsect2">
230<a name="id-1.2.71.8.12.2"></a><h3>Element Pads</h3>
231<div class="variablelist"><table border="0" class="variablelist">
232<colgroup>
233<col align="left" valign="top">
234<col>
235</colgroup>
236<tbody>
237<tr>
238<td><p><span class="term">name</span></p></td>
239<td>sink</td>
240</tr>
241<tr>
242<td><p><span class="term">direction</span></p></td>
243<td>sink</td>
244</tr>
245<tr>
246<td><p><span class="term">presence</span></p></td>
247<td>always</td>
248</tr>
249<tr>
250<td><p><span class="term">details</span></p></td>
251<td>ANY</td>
252</tr>
253</tbody>
254</table></div>
255</div>
256</div>
257</div>
258<div class="refsect1">
259<a name="gst-plugins-base-plugins-multisocketsink.functions_details"></a><h2>Functions</h2>
260<p></p>
261</div>
262<div class="refsect1">
263<a name="gst-plugins-base-plugins-multisocketsink.other_details"></a><h2>Types and Values</h2>
264<div class="refsect2">
265<a name="GstMultiSocketSink-struct"></a><h3>struct GstMultiSocketSink</h3>
266<pre class="programlisting">struct GstMultiSocketSink;</pre>
267<p>The multisocketsink object structure.</p>
268</div>
269</div>
270<div class="refsect1">
271<a name="gst-plugins-base-plugins-multisocketsink.property-details"></a><h2>Property Details</h2>
272<div class="refsect2">
273<a name="GstMultiSocketSink--send-dispatched"></a><h3>The <code class="literal">“send-dispatched”</code> property</h3>
274<pre class="programlisting">  “send-dispatched”          <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre>
275<p>Sends a GstNetworkMessageDispatched event upstream whenever a buffer
276is sent to a client.
277The event is a CUSTOM event name GstNetworkMessageDispatched and
278contains:</p>
279<p>  "object"  G_TYPE_OBJECT     : the object identifying the client
280  "buffer"  GST_TYPE_BUFFER   : the buffer sent to the client</p>
281<p>Flags: Read / Write</p>
282<p>Default value: FALSE</p>
283<p class="since">Since: 1.8.0</p>
284</div>
285<hr>
286<div class="refsect2">
287<a name="GstMultiSocketSink--send-messages"></a><h3>The <code class="literal">“send-messages”</code> property</h3>
288<pre class="programlisting">  “send-messages”            <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre>
289<p>Sends a GstNetworkMessage event upstream whenever a buffer
290is received from a client.
291The event is a CUSTOM event name GstNetworkMessage and contains:</p>
292<p>  "object"  G_TYPE_OBJECT     : the object identifying the client
293  "buffer"  GST_TYPE_BUFFER   : the buffer with data received from the
294                                client</p>
295<p>Flags: Read / Write</p>
296<p>Default value: FALSE</p>
297<p class="since">Since: 1.8.0</p>
298</div>
299</div>
300<div class="refsect1">
301<a name="gst-plugins-base-plugins-multisocketsink.signal-details"></a><h2>Signal Details</h2>
302<div class="refsect2">
303<a name="GstMultiSocketSink-add"></a><h3>The <code class="literal">“add”</code> signal</h3>
304<pre class="programlisting"><span class="returnvalue">void</span>
305user_function (<a class="link" href="gst-plugins-base-plugins-multisocketsink.html#GstMultiSocketSink"><span class="type">GstMultiSocketSink</span></a> *gstmultisocketsink,
306               <a href="/usr/share/gtk-doc/html/gio/GSocket.html#GSocket-struct"><span class="type">GSocket</span></a>            *socket,
307               <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>            user_data)</pre>
308<p>Hand the given open socket to multisocketsink to write to.</p>
309<div class="refsect3">
310<a name="GstMultiSocketSink-add.parameters"></a><h4>Parameters</h4>
311<div class="informaltable"><table class="informaltable" width="100%" border="0">
312<colgroup>
313<col width="150px" class="parameters_name">
314<col class="parameters_description">
315<col width="200px" class="parameters_annotations">
316</colgroup>
317<tbody>
318<tr>
319<td class="parameter_name"><p>gstmultisocketsink</p></td>
320<td class="parameter_description"><p>the multisocketsink element to emit this signal on</p></td>
321<td class="parameter_annotations"> </td>
322</tr>
323<tr>
324<td class="parameter_name"><p>socket</p></td>
325<td class="parameter_description"><p>the socket to add to multisocketsink</p></td>
326<td class="parameter_annotations"> </td>
327</tr>
328<tr>
329<td class="parameter_name"><p>user_data</p></td>
330<td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
331<td class="parameter_annotations"> </td>
332</tr>
333</tbody>
334</table></div>
335</div>
336<p>Flags: <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-ACTION:CAPS">Action</a></p>
337</div>
338<hr>
339<div class="refsect2">
340<a name="GstMultiSocketSink-add-full"></a><h3>The <code class="literal">“add-full”</code> signal</h3>
341<pre class="programlisting"><span class="returnvalue">void</span>
342user_function (<a class="link" href="gst-plugins-base-plugins-multisocketsink.html#GstMultiSocketSink"><span class="type">GstMultiSocketSink</span></a>          *gstmultisocketsink,
343               <a href="/usr/share/gtk-doc/html/gio/GSocket.html#GSocket-struct"><span class="type">GSocket</span></a>                     *socket,
344               <span class="type">GstMultiHandleSinkSyncMethod</span> sync,
345               <a href="/usr/share/gtk-doc/html/gstreamer-1.0/gstreamer-GstFormat.html#GstFormat"><span class="type">GstFormat</span></a>                    format_min,
346               <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint64"><span class="type">guint64</span></a>                      value_min,
347               <a href="/usr/share/gtk-doc/html/gstreamer-1.0/gstreamer-GstFormat.html#GstFormat"><span class="type">GstFormat</span></a>                    format_max,
348               <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint64"><span class="type">guint64</span></a>                      value_max,
349               <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>                     user_data)</pre>
350<p>Hand the given open socket to multisocketsink to write to and
351specify the burst parameters for the new connection.</p>
352<div class="refsect3">
353<a name="GstMultiSocketSink-add-full.parameters"></a><h4>Parameters</h4>
354<div class="informaltable"><table class="informaltable" width="100%" border="0">
355<colgroup>
356<col width="150px" class="parameters_name">
357<col class="parameters_description">
358<col width="200px" class="parameters_annotations">
359</colgroup>
360<tbody>
361<tr>
362<td class="parameter_name"><p>gstmultisocketsink</p></td>
363<td class="parameter_description"><p>the multisocketsink element to emit this signal on</p></td>
364<td class="parameter_annotations"> </td>
365</tr>
366<tr>
367<td class="parameter_name"><p>socket</p></td>
368<td class="parameter_description"><p>the socket to add to multisocketsink</p></td>
369<td class="parameter_annotations"> </td>
370</tr>
371<tr>
372<td class="parameter_name"><p>sync</p></td>
373<td class="parameter_description"><p>the sync method to use</p></td>
374<td class="parameter_annotations"> </td>
375</tr>
376<tr>
377<td class="parameter_name"><p>format_min</p></td>
378<td class="parameter_description"><p>the format of <em class="parameter"><code>value_min</code></em>
379</p></td>
380<td class="parameter_annotations"> </td>
381</tr>
382<tr>
383<td class="parameter_name"><p>value_min</p></td>
384<td class="parameter_description"><p>the minimum amount of data to burst expressed in
385<em class="parameter"><code>format_min</code></em>
386units.</p></td>
387<td class="parameter_annotations"> </td>
388</tr>
389<tr>
390<td class="parameter_name"><p>format_max</p></td>
391<td class="parameter_description"><p>the format of <em class="parameter"><code>value_max</code></em>
392</p></td>
393<td class="parameter_annotations"> </td>
394</tr>
395<tr>
396<td class="parameter_name"><p>value_max</p></td>
397<td class="parameter_description"><p>the maximum amount of data to burst expressed in
398<em class="parameter"><code>format_max</code></em>
399units.</p></td>
400<td class="parameter_annotations"> </td>
401</tr>
402<tr>
403<td class="parameter_name"><p>user_data</p></td>
404<td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
405<td class="parameter_annotations"> </td>
406</tr>
407</tbody>
408</table></div>
409</div>
410<p>Flags: <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-ACTION:CAPS">Action</a></p>
411</div>
412<hr>
413<div class="refsect2">
414<a name="GstMultiSocketSink-client-added"></a><h3>The <code class="literal">“client-added”</code> signal</h3>
415<pre class="programlisting"><span class="returnvalue">void</span>
416user_function (<a class="link" href="gst-plugins-base-plugins-multisocketsink.html#GstMultiSocketSink"><span class="type">GstMultiSocketSink</span></a> *gstmultisocketsink,
417               <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct"><span class="type">GObject</span></a>            *socket,
418               <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>            user_data)</pre>
419<p>The given socket was added to multisocketsink. This signal will
420be emitted from the streaming thread so application should be prepared
421for that.</p>
422<div class="refsect3">
423<a name="GstMultiSocketSink-client-added.parameters"></a><h4>Parameters</h4>
424<div class="informaltable"><table class="informaltable" width="100%" border="0">
425<colgroup>
426<col width="150px" class="parameters_name">
427<col class="parameters_description">
428<col width="200px" class="parameters_annotations">
429</colgroup>
430<tbody>
431<tr>
432<td class="parameter_name"><p>gstmultisocketsink</p></td>
433<td class="parameter_description"><p>the multisocketsink element that emitted this signal</p></td>
434<td class="parameter_annotations"> </td>
435</tr>
436<tr>
437<td class="parameter_name"><p>socket</p></td>
438<td class="parameter_description"><p>the socket that was added to multisocketsink</p></td>
439<td class="parameter_annotations"> </td>
440</tr>
441<tr>
442<td class="parameter_name"><p>user_data</p></td>
443<td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
444<td class="parameter_annotations"> </td>
445</tr>
446</tbody>
447</table></div>
448</div>
449<p>Flags: <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS">Run Last</a></p>
450</div>
451<hr>
452<div class="refsect2">
453<a name="GstMultiSocketSink-client-removed"></a><h3>The <code class="literal">“client-removed”</code> signal</h3>
454<pre class="programlisting"><span class="returnvalue">void</span>
455user_function (<a class="link" href="gst-plugins-base-plugins-multisocketsink.html#GstMultiSocketSink"><span class="type">GstMultiSocketSink</span></a>            *gstmultisocketsink,
456               <a href="/usr/share/gtk-doc/html/gio/GSocket.html#GSocket-struct"><span class="type">GSocket</span></a>                       *socket,
457               <span class="type">GstMultiHandleSinkClientStatus</span> status,
458               <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>                       user_data)</pre>
459<p>The given socket is about to be removed from multisocketsink. This
460signal will be emitted from the streaming thread so applications should
461be prepared for that.</p>
462<p><em class="parameter"><code>gstmultisocketsink</code></em>
463 still holds a handle to <em class="parameter"><code>socket</code></em>
464 so it is possible to call
465the get-stats signal from this callback. For the same reason it is
466not safe to <code class="function">close()</code> and reuse <em class="parameter"><code>socket</code></em>
467 in this callback.</p>
468<div class="refsect3">
469<a name="GstMultiSocketSink-client-removed.parameters"></a><h4>Parameters</h4>
470<div class="informaltable"><table class="informaltable" width="100%" border="0">
471<colgroup>
472<col width="150px" class="parameters_name">
473<col class="parameters_description">
474<col width="200px" class="parameters_annotations">
475</colgroup>
476<tbody>
477<tr>
478<td class="parameter_name"><p>gstmultisocketsink</p></td>
479<td class="parameter_description"><p>the multisocketsink element that emitted this signal</p></td>
480<td class="parameter_annotations"> </td>
481</tr>
482<tr>
483<td class="parameter_name"><p>socket</p></td>
484<td class="parameter_description"><p>the socket that is to be removed from multisocketsink</p></td>
485<td class="parameter_annotations"> </td>
486</tr>
487<tr>
488<td class="parameter_name"><p>status</p></td>
489<td class="parameter_description"><p>the reason why the client was removed</p></td>
490<td class="parameter_annotations"> </td>
491</tr>
492<tr>
493<td class="parameter_name"><p>user_data</p></td>
494<td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
495<td class="parameter_annotations"> </td>
496</tr>
497</tbody>
498</table></div>
499</div>
500<p>Flags: <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS">Run Last</a></p>
501</div>
502<hr>
503<div class="refsect2">
504<a name="GstMultiSocketSink-client-socket-removed"></a><h3>The <code class="literal">“client-socket-removed”</code> signal</h3>
505<pre class="programlisting"><span class="returnvalue">void</span>
506user_function (<a class="link" href="gst-plugins-base-plugins-multisocketsink.html#GstMultiSocketSink"><span class="type">GstMultiSocketSink</span></a> *gstmultisocketsink,
507               <a href="/usr/share/gtk-doc/html/gio/GSocket.html#GSocket-struct"><span class="type">GSocket</span></a>            *socket,
508               <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>            user_data)</pre>
509<p>The given socket was removed from multisocketsink. This signal will
510be emitted from the streaming thread so applications should be prepared
511for that.</p>
512<p>In this callback, <em class="parameter"><code>gstmultisocketsink</code></em>
513 has removed all the information
514associated with <em class="parameter"><code>socket</code></em>
515 and it is therefore not possible to call get-stats
516with <em class="parameter"><code>socket</code></em>
517. It is however safe to <code class="function">close()</code> and reuse <em class="parameter"><code>fd</code></em>
518 in the callback.</p>
519<div class="refsect3">
520<a name="GstMultiSocketSink-client-socket-removed.parameters"></a><h4>Parameters</h4>
521<div class="informaltable"><table class="informaltable" width="100%" border="0">
522<colgroup>
523<col width="150px" class="parameters_name">
524<col class="parameters_description">
525<col width="200px" class="parameters_annotations">
526</colgroup>
527<tbody>
528<tr>
529<td class="parameter_name"><p>gstmultisocketsink</p></td>
530<td class="parameter_description"><p>the multisocketsink element that emitted this signal</p></td>
531<td class="parameter_annotations"> </td>
532</tr>
533<tr>
534<td class="parameter_name"><p>socket</p></td>
535<td class="parameter_description"><p>the socket that was removed from multisocketsink</p></td>
536<td class="parameter_annotations"> </td>
537</tr>
538<tr>
539<td class="parameter_name"><p>user_data</p></td>
540<td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
541<td class="parameter_annotations"> </td>
542</tr>
543</tbody>
544</table></div>
545</div>
546<p>Flags: <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS">Run Last</a></p>
547</div>
548<hr>
549<div class="refsect2">
550<a name="GstMultiSocketSink-get-stats"></a><h3>The <code class="literal">“get-stats”</code> signal</h3>
551<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstStructure.html#GstStructure-struct"><span class="returnvalue">GstStructure</span></a>*
552user_function (<a class="link" href="gst-plugins-base-plugins-multisocketsink.html#GstMultiSocketSink"><span class="type">GstMultiSocketSink</span></a> *gstmultisocketsink,
553               <a href="/usr/share/gtk-doc/html/gio/GSocket.html#GSocket-struct"><span class="type">GSocket</span></a>            *socket,
554               <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>            user_data)</pre>
555<p>Get statistics about <em class="parameter"><code>socket</code></em>
556. This function returns a GstStructure.</p>
557<div class="refsect3">
558<a name="GstMultiSocketSink-get-stats.parameters"></a><h4>Parameters</h4>
559<div class="informaltable"><table class="informaltable" width="100%" border="0">
560<colgroup>
561<col width="150px" class="parameters_name">
562<col class="parameters_description">
563<col width="200px" class="parameters_annotations">
564</colgroup>
565<tbody>
566<tr>
567<td class="parameter_name"><p>gstmultisocketsink</p></td>
568<td class="parameter_description"><p>the multisocketsink element to emit this signal on</p></td>
569<td class="parameter_annotations"> </td>
570</tr>
571<tr>
572<td class="parameter_name"><p>socket</p></td>
573<td class="parameter_description"><p>the socket to get stats of from multisocketsink</p></td>
574<td class="parameter_annotations"> </td>
575</tr>
576<tr>
577<td class="parameter_name"><p>user_data</p></td>
578<td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
579<td class="parameter_annotations"> </td>
580</tr>
581</tbody>
582</table></div>
583</div>
584<div class="refsect3">
585<a name="GstMultiSocketSink-get-stats.returns"></a><h4>Returns</h4>
586<p> a GstStructure with the statistics. The structure contains
587values that represent: total number of bytes sent, time
588when the client was added, time when the client was
589disconnected/removed, time the client is/was active, last activity
590time (in epoch seconds), number of buffers dropped.
591All times are expressed in nanoseconds (GstClockTime).</p>
592</div>
593<p>Flags: <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-ACTION:CAPS">Action</a></p>
594</div>
595<hr>
596<div class="refsect2">
597<a name="GstMultiSocketSink-remove"></a><h3>The <code class="literal">“remove”</code> signal</h3>
598<pre class="programlisting"><span class="returnvalue">void</span>
599user_function (<a class="link" href="gst-plugins-base-plugins-multisocketsink.html#GstMultiSocketSink"><span class="type">GstMultiSocketSink</span></a> *gstmultisocketsink,
600               <a href="/usr/share/gtk-doc/html/gio/GSocket.html#GSocket-struct"><span class="type">GSocket</span></a>            *socket,
601               <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>            user_data)</pre>
602<p>Remove the given open socket from multisocketsink.</p>
603<div class="refsect3">
604<a name="GstMultiSocketSink-remove.parameters"></a><h4>Parameters</h4>
605<div class="informaltable"><table class="informaltable" width="100%" border="0">
606<colgroup>
607<col width="150px" class="parameters_name">
608<col class="parameters_description">
609<col width="200px" class="parameters_annotations">
610</colgroup>
611<tbody>
612<tr>
613<td class="parameter_name"><p>gstmultisocketsink</p></td>
614<td class="parameter_description"><p>the multisocketsink element to emit this signal on</p></td>
615<td class="parameter_annotations"> </td>
616</tr>
617<tr>
618<td class="parameter_name"><p>socket</p></td>
619<td class="parameter_description"><p>the socket to remove from multisocketsink</p></td>
620<td class="parameter_annotations"> </td>
621</tr>
622<tr>
623<td class="parameter_name"><p>user_data</p></td>
624<td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
625<td class="parameter_annotations"> </td>
626</tr>
627</tbody>
628</table></div>
629</div>
630<p>Flags: <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-ACTION:CAPS">Action</a></p>
631</div>
632<hr>
633<div class="refsect2">
634<a name="GstMultiSocketSink-remove-flush"></a><h3>The <code class="literal">“remove-flush”</code> signal</h3>
635<pre class="programlisting"><span class="returnvalue">void</span>
636user_function (<a class="link" href="gst-plugins-base-plugins-multisocketsink.html#GstMultiSocketSink"><span class="type">GstMultiSocketSink</span></a> *gstmultisocketsink,
637               <a href="/usr/share/gtk-doc/html/gio/GSocket.html#GSocket-struct"><span class="type">GSocket</span></a>            *socket,
638               <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>            user_data)</pre>
639<p>Remove the given open socket from multisocketsink after flushing all
640the pending data to the socket.</p>
641<div class="refsect3">
642<a name="GstMultiSocketSink-remove-flush.parameters"></a><h4>Parameters</h4>
643<div class="informaltable"><table class="informaltable" width="100%" border="0">
644<colgroup>
645<col width="150px" class="parameters_name">
646<col class="parameters_description">
647<col width="200px" class="parameters_annotations">
648</colgroup>
649<tbody>
650<tr>
651<td class="parameter_name"><p>gstmultisocketsink</p></td>
652<td class="parameter_description"><p>the multisocketsink element to emit this signal on</p></td>
653<td class="parameter_annotations"> </td>
654</tr>
655<tr>
656<td class="parameter_name"><p>socket</p></td>
657<td class="parameter_description"><p>the socket to remove from multisocketsink</p></td>
658<td class="parameter_annotations"> </td>
659</tr>
660<tr>
661<td class="parameter_name"><p>user_data</p></td>
662<td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
663<td class="parameter_annotations"> </td>
664</tr>
665</tbody>
666</table></div>
667</div>
668<p>Flags: <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-ACTION:CAPS">Action</a></p>
669</div>
670</div>
671<div class="refsect1">
672<a name="gst-plugins-base-plugins-multisocketsink.see-also"></a><h2>See Also</h2>
673<p>tcpserversink</p>
674</div>
675</div>
676<div class="footer">
677<hr>Generated by GTK-Doc V1.28</div>
678</body>
679</html>