[gst-devel] Getting remote endpoint from UDP traffic in a udpsrc element

Wim Taymans wim.taymans at gmail.com
Mon Dec 13 12:40:34 CET 2010


On Mon, 2010-12-13 at 11:59 +0100, Antoni Silvestre Padrós wrote:
> Hello,
> 
> 
> I'm trying to get the remote endpoint info from the last received UDP
> packet in a udpsrc GStreamer element. 
> The only way I can think of doing this is obtaining the socket of the
> udpsrc and then use the use the recvfrom call, however this I guess
> would force me to somehow reinject the traffic I captured with that
> call back to the udpsrc element so it doesn't get lost. Is there any
> other way of doing this?
> 
> 
> I don't have very much experience programming with sockets so I might
> be missing something.

Udpsrc generates GstNetBuffers (see
-base/gst-libs/get/netbuffer/gstnetbuffer.h) that contains the sender
address. look in gstrtpbin for how you can use this address in your
plugin then.

Wim
> 
> 
> Any help would be greatly appreciated.
> 
> 
> Toni Silvestre
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
> new data types, scalar functions, improved concurrency, built-in packages, 
> OCI, SQL*Plus, data movement tools, best practices and more.
> http://p.sf.net/sfu/oracle-sfdev2dev 
> _______________________________________________ gstreamer-devel mailing list gstreamer-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gstreamer-devel






More information about the gstreamer-devel mailing list