Well typically when you receive from a socket the host binding or sockaddr is separate from the actual received buffer. It does look like udpsrc is using GstNetBuffer instead of GstBuffer and the source addr/port is is added to the buffer. The down stream element should be able to cast the received buffer as a GstNetBuffer and extract the source addr/port.<br>
<br><div class="gmail_quote">On Mon, Apr 19, 2010 at 3:42 PM, Donny Viszneki <span dir="ltr">&lt;<a href="mailto:donny.viszneki@gmail.com">donny.viszneki@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I would think the source host would be a property of a UDP packet and<br>
not a listening UDP socket :)<br>
<div><div></div><div class="h5"><br>
On Mon, Apr 19, 2010 at 6:34 PM, Attila RS &lt;<a href="mailto:avgrind911@gmail.com">avgrind911@gmail.com</a>&gt; wrote:<br>
&gt; Is there anyway to get the source host/port from udpsink? I need to receive<br>
&gt; data on a udp port process it and send a response back to the original<br>
&gt; sender. I don&#39;t know the source host/port when the pipeline is created, so I<br>
&gt; can&#39;t set the destination host/port on the udpsrc until after I receive the<br>
&gt; first packet and retrieve the source host/port.<br>
&gt; Attila<br>
</div></div>&gt; ------------------------------------------------------------------------------<br>
&gt; Download Intel&amp;#174; Parallel Studio Eval<br>
&gt; Try the new software tools for yourself. Speed compiling, find bugs<br>
&gt; proactively, and fine-tune applications for parallel performance.<br>
&gt; See why Intel Parallel Studio got high marks during beta.<br>
&gt; <a href="http://p.sf.net/sfu/intel-sw-dev" target="_blank">http://p.sf.net/sfu/intel-sw-dev</a><br>
&gt; _______________________________________________<br>
&gt; gstreamer-devel mailing list<br>
&gt; <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
&gt; <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>
<br>
<br>
<br>
--<br>
<a href="http://codebad.com/" target="_blank">http://codebad.com/</a><br>
<br>
------------------------------------------------------------------------------<br>
Download Intel&amp;#174; Parallel Studio Eval<br>
Try the new software tools for yourself. Speed compiling, find bugs<br>
proactively, and fine-tune applications for parallel performance.<br>
See why Intel Parallel Studio got high marks during beta.<br>
<a href="http://p.sf.net/sfu/intel-sw-dev" target="_blank">http://p.sf.net/sfu/intel-sw-dev</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>
</blockquote></div><br>