Camel.NetworkSettings.dup_host

### Method

# Camel NetworkSettingsdup_host

since: 3.4

#### Declaration [src]

    gchar*
    camel_network_settings_dup_host (
      CamelNetworkSettings* settings
    )

#### Description [src]

Thread-safe variation of camel_network_settings_get_host(). Use this function when accessing `settings` from multiple threads.

The returned string should be freed with `g_free()` when no longer needed.

Available since: 3.4

#### Return value

Type: `gchar*`

A newly-allocated copy of `CamelNetworkSettings:host`.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.
The value is a NUL terminated UTF-8 string.