MMBearerIpConfig

MMBearerIpConfig — Helper object to handle IP configuration.

Synopsis

struct              MMBearerIpConfig;

MMBearerIpMethod    mm_bearer_ip_config_get_method      (MMBearerIpConfig *self);
const gchar *       mm_bearer_ip_config_get_address     (MMBearerIpConfig *self);
guint               mm_bearer_ip_config_get_prefix      (MMBearerIpConfig *self);
const gchar **      mm_bearer_ip_config_get_dns         (MMBearerIpConfig *self);
const gchar *       mm_bearer_ip_config_get_gateway     (MMBearerIpConfig *self);

Object Hierarchy

  GObject
   +----MMBearerIpConfig

Description

The MMBearerIpConfig is an object handling the IP configuration required by the bearer to finish the connection.

This object is retrieved with either mm_bearer_get_ipv4_config(), mm_bearer_peek_ipv4_config(), mm_bearer_get_ipv6_config() or mm_bearer_peek_ipv6_config().

Details

struct MMBearerIpConfig

struct MMBearerIpConfig;

The MMBearerIpConfig structure contains private data and should only be accessed using the provided API.


mm_bearer_ip_config_get_method ()

MMBearerIpMethod    mm_bearer_ip_config_get_method      (MMBearerIpConfig *self);

Gets the IP method to be used with this bearer.

self :

a MMBearerIpConfig.

Returns :

a MMBearerIpMethod.

mm_bearer_ip_config_get_address ()

const gchar *       mm_bearer_ip_config_get_address     (MMBearerIpConfig *self);

Gets the IP address to be used with this bearer.

self :

a MMBearerIpConfig.

Returns :

a string with the IP address, or NULL if unknown. Do not free the returned value, it is owned by self.

mm_bearer_ip_config_get_prefix ()

guint               mm_bearer_ip_config_get_prefix      (MMBearerIpConfig *self);

Gets the network prefix to be used with this bearer.

self :

a MMBearerIpConfig.

Returns :

the network prefix.

mm_bearer_ip_config_get_dns ()

const gchar **      mm_bearer_ip_config_get_dns         (MMBearerIpConfig *self);

Gets the list of IP addresses of DNS servers to be used with this bearer.

self :

a MMBearerIpConfig.

Returns :

a NULL-terminated array of strings. Do not free the returned value, it is owned by self. [transfer none][array zero-terminated=1]

mm_bearer_ip_config_get_gateway ()

const gchar *       mm_bearer_ip_config_get_gateway     (MMBearerIpConfig *self);

Gets the IP address of the gateway to be used with this bearer.

self :

a MMBearerIpConfig.

Returns :

a string with the IP address, or NULL if unknown. Do not free the returned value, it is owned by self.