| GStreamer 1.0 Library Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
#include <gst/net/gstnetaddressmeta.h> struct GstNetAddressMeta; GstNetAddressMeta * gst_buffer_add_net_address_meta (GstBuffer *buffer,GSocketAddress *addr); #define gst_buffer_get_net_address_meta (b) const GstMetaInfo * gst_net_address_meta_get_info (void);
GstNetAddress can be used to store a network address. GstNetAddressMeta can be used to store a network address in a GstBuffer so that it network elements can track the to and from address of the buffer.
struct GstNetAddressMeta {
GstMeta meta;
GSocketAddress *addr;
};
Buffer metadata for network addresses.
GstMeta |
the parent type |
| a GSocketAddress stored as metadata |
GstNetAddressMeta * gst_buffer_add_net_address_meta (GstBuffer *buffer,GSocketAddress *addr);
Attaches addr as metadata in a GstNetAddressMeta to buffer.
|
a GstBuffer |
|
a GSocketAddress to connect to buffer
|
Returns : |
a GstNetAddressMeta connected to buffer. [transfer none]
|