gi-gio-2.0.24: Gio bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
Safe HaskellNone
LanguageHaskell2010

GI.Gio.Objects.ProxyAddressEnumerator

Contents

Description

ProxyAddressEnumerator is a wrapper around SocketAddressEnumerator which takes the SocketAddress instances returned by the SocketAddressEnumerator and wraps them in ProxyAddress instances, using the given ProxyAddressEnumerator:proxy-resolver.

This enumerator will be returned (for example, by socketConnectableEnumerate) as appropriate when a proxy is configured; there should be no need to manually wrap a SocketAddressEnumerator instance with one.

Synopsis

Exported types

toProxyAddressEnumerator :: (MonadIO m, IsProxyAddressEnumerator o) => o -> m ProxyAddressEnumerator Source #

Cast to ProxyAddressEnumerator, for types for which this is known to be safe. For general casts, use castTo.

Properties

connectable

No description available in the introspection data.

constructProxyAddressEnumeratorConnectable :: (IsProxyAddressEnumerator o, IsSocketConnectable a) => a -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “connectable” property. This is rarely needed directly, but it is used by new.

getProxyAddressEnumeratorConnectable :: (MonadIO m, IsProxyAddressEnumerator o) => o -> m (Maybe SocketConnectable) Source #

Get the value of the “connectable” property. When overloading is enabled, this is equivalent to

get proxyAddressEnumerator #connectable

defaultPort

The default port to use if ProxyAddressEnumerator:uri does not specify one.

Since: 2.38

constructProxyAddressEnumeratorDefaultPort :: IsProxyAddressEnumerator o => Word32 -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “default-port” property. This is rarely needed directly, but it is used by new.

getProxyAddressEnumeratorDefaultPort :: (MonadIO m, IsProxyAddressEnumerator o) => o -> m Word32 Source #

Get the value of the “default-port” property. When overloading is enabled, this is equivalent to

get proxyAddressEnumerator #defaultPort

proxyResolver

The proxy resolver to use.

Since: 2.36

clearProxyAddressEnumeratorProxyResolver :: (MonadIO m, IsProxyAddressEnumerator o) => o -> m () Source #

Set the value of the “proxy-resolver” property to Nothing. When overloading is enabled, this is equivalent to

clear #proxyResolver

constructProxyAddressEnumeratorProxyResolver :: (IsProxyAddressEnumerator o, IsProxyResolver a) => a -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “proxy-resolver” property. This is rarely needed directly, but it is used by new.

getProxyAddressEnumeratorProxyResolver :: (MonadIO m, IsProxyAddressEnumerator o) => o -> m (Maybe ProxyResolver) Source #

Get the value of the “proxy-resolver” property. When overloading is enabled, this is equivalent to

get proxyAddressEnumerator #proxyResolver

setProxyAddressEnumeratorProxyResolver :: (MonadIO m, IsProxyAddressEnumerator o, IsProxyResolver a) => o -> a -> m () Source #

Set the value of the “proxy-resolver” property. When overloading is enabled, this is equivalent to

set proxyAddressEnumerator [ #proxyResolver := value ]

uri

No description available in the introspection data.

constructProxyAddressEnumeratorUri :: IsProxyAddressEnumerator o => Text -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “uri” property. This is rarely needed directly, but it is used by new.

getProxyAddressEnumeratorUri :: (MonadIO m, IsProxyAddressEnumerator o) => o -> m (Maybe Text) Source #

Get the value of the “uri” property. When overloading is enabled, this is equivalent to

get proxyAddressEnumerator #uri