An opaque network address as used in #GstNetBuffer.
buffer for use in network sources and sinks.
It contains the source or destination address of the buffer.
Create a new network buffer.
a new #GstNetBuffer.
The Address type used in #GstNetAddress.
Compare two #GstNetAddress structures
TRUE if they are identical, FALSE otherwise
The first #GstNetAddress
The second #GstNetAddress
Get just the address bytes stored in @naddr into @address.
Note that @port is expressed in network byte order, use g_ntohs() to convert
it to host order. IP4 addresses are also stored in network byte order.
number of bytes actually copied
a network address
a location to store the result.
a location to store the port.
Get the IPv4 address stored in @naddr into @address. This function requires
that the address type of @naddr is of type #GST_NET_TYPE_IP4.
Note that @port and @address are expressed in network byte order, use
g_ntohs() and g_ntohl() to convert them to host order.
TRUE if the address could be retrieved.
a network address
a location to store the address.
a location to store the port.
Get the IPv6 address stored in @naddr into @address.
If @naddr is of type GST_NET_TYPE_IP4, the transitional IP6 address is
returned.
Note that @port is expressed in network byte order, use g_ntohs() to convert
it to host order.
TRUE if the address could be retrieved.
a network address
a location to store the result.
a location to store the port.
Get the type of address stored in @naddr.
the network type stored in @naddr.
a network address
Set just the address bytes stored in @naddr into @address.
Note that @port must be expressed in network byte order, use g_htons() to
convert it to network byte order order. IP4 address bytes must also be
stored in network byte order.
number of bytes actually copied
a network address
the address type (IPv4 or IPV6)
a location to store the result.
a location to store the port.
Set @naddr with the IPv4 @address and @port pair.
Note that @port and @address must be expressed in network byte order,
use g_htons() and g_htonl() to convert them to network byte order.
a network address
an IPv4 network address.
a port number to set.
Set @naddr with the IPv6 @address and @port pair.
Note that @port must be expressed in network byte order, use g_htons() to convert
it to network byte order.
a network address
an IPv6 network address.
a port number to set.
Copies a string representation of @naddr into @dest. Up to @len bytes are
copied.
enough
the number of bytes which would be produced if the buffer was large
a #GstNetAddress
destination
len of @dest