Hi, gstreamer-devel:<br><br>&nbsp;&nbsp;&nbsp; Correct. Both these elements use one socket inside so if every connection wanna use a separate socket pair, multiple udpsrc/udpsink cannot be avoid, or you can write a new element to achieve this.<br>
<br>Eric Zhang<br><br><div class="gmail_quote">2008/12/6 Olivier Crête <span dir="ltr">&lt;<a href="mailto:olivier.crete@collabora.co.uk">olivier.crete@collabora.co.uk</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Fri, 2008-12-05 at 17:54 +0800, Eric Zhang wrote:<br>
&gt; Hi, gstreamer-devel:<br>
&gt;<br>
&gt; &nbsp; &nbsp; multiudpsink can send UDP packets to multiple clients. But I don&#39;t<br>
&gt; find &quot;multiudpsrc&quot;. &nbsp;:)<br>
<br>
</div>udpsrc can receive from multiple clients (and its save the address in<br>
the buffer&#39;s header, its a GstNetBuffer).<br>
<br>
Then you possibly need to demultiplex it yourself.<br>
<br>
That said, I think its not what spgle wants, since even multiudpsink<br>
only uses one socket.<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
&gt; Eric Zhang<br>
&gt;<br>
&gt; 2008/12/5 SP GLE &lt;<a href="mailto:spglegle@yahoo.fr">spglegle@yahoo.fr</a>&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; Hi,<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; I use Gstreamer for receving/sending RTP with multiple<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; connections by process<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(let&#39;s say one hundred), so 100 UDP sockets for RTP and 100<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; UDP sockets for RTCP.<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; These 200 sockets are in use by udpsrc and udpsink elements<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; (created using<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; the &#39;sockfd&#39; properties for each one).<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; Is there an element able to handle many sockets (200 for ex.)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; for reading and writing,<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; using provided sockets&#39; fds ?<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; It would be more efficient than 200 udpsrc and udpsink,<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; avoiding many fcntl() and poll for<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; waiting for/reading data. fds could be added/removed to the<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; element using requested pads,<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; pad names containing fd value as %d.<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; Regards.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; ------------------------------------------------------------------------------<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; Vegas, Nevada.<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; The future of the web can&#39;t happen without you. &nbsp;Join us at<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; MIX09 to help<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; pave the way to the Next Web now. Learn more and register at<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/" target="_blank">http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/</a><br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; _______________________________________________<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; gstreamer-devel mailing list<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
&gt;<br>
&gt; ------------------------------------------------------------------------------<br>
&gt; SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.<br>
&gt; The future of the web can&#39;t happen without you. &nbsp;Join us at MIX09 to help<br>
&gt; pave the way to the Next Web now. Learn more and register at<br>
&gt; <a href="http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/" target="_blank">http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/</a><br>
&gt; _______________________________________________ gstreamer-devel mailing list <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a> <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>

</div></div><font color="#888888">--<br>
Olivier Crête<br>
<a href="mailto:olivier.crete@collabora.co.uk">olivier.crete@collabora.co.uk</a><br>
Collabora Ltd<br>
</font><br>------------------------------------------------------------------------------<br>
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.<br>
The future of the web can&#39;t happen without you. &nbsp;Join us at MIX09 to help<br>
pave the way to the Next Web now. Learn more and register at<br>
<a href="http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/" target="_blank">http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/</a><br>_______________________________________________<br>

gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br>