GstNetAddressMeta

GstNetAddressMeta — Network address metadata

Functions

Types and Values

Includes

#include <gst/net/gstnetaddressmeta.h>

Description

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.

Functions

gst_buffer_add_net_address_meta ()

GstNetAddressMeta *
gst_buffer_add_net_address_meta (GstBuffer *buffer,
                                 GSocketAddress *addr);

Attaches addr as metadata in a GstNetAddressMeta to buffer .

Parameters

buffer

a GstBuffer

 

addr

a GSocketAddress to connect to buffer

 

Returns

a GstNetAddressMeta connected to buffer .

[transfer none]


gst_buffer_get_net_address_meta()

#define             gst_buffer_get_net_address_meta(b)

gst_net_address_meta_get_info ()

const GstMetaInfo *
gst_net_address_meta_get_info (void);

Types and Values

struct GstNetAddressMeta

struct GstNetAddressMeta {
  GstMeta       meta;

  GSocketAddress *addr;
};

Buffer metadata for network addresses.

Members

GstMeta meta;

the parent type

 

GSocketAddress *addr;

a GSocketAddress stored as metadata