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"><<a href="mailto:donny.viszneki@gmail.com">donny.viszneki@gmail.com</a>></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 <<a href="mailto:avgrind911@gmail.com">avgrind911@gmail.com</a>> wrote:<br>
> Is there anyway to get the source host/port from udpsink? I need to receive<br>
> data on a udp port process it and send a response back to the original<br>
> sender. I don't know the source host/port when the pipeline is created, so I<br>
> can't set the destination host/port on the udpsrc until after I receive the<br>
> first packet and retrieve the source host/port.<br>
> Attila<br>
</div></div>> ------------------------------------------------------------------------------<br>
> Download Intel&#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>
><br>
><br>
<br>
<br>
<br>
--<br>
<a href="http://codebad.com/" target="_blank">http://codebad.com/</a><br>
<br>
------------------------------------------------------------------------------<br>
Download Intel&#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>