gi-gio-2.0.26: Gio bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gio.Objects.ProxyAddressEnumerator

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

class (GObject o, IsDescendantOf ProxyAddressEnumerator o) => IsProxyAddressEnumerator o Source #

Type class for types which can be safely cast to ProxyAddressEnumerator, for instance with toProxyAddressEnumerator.

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.

Methods

Overloaded methods

Properties

connectable

No description available in the introspection data.

constructProxyAddressEnumeratorConnectable :: (IsProxyAddressEnumerator o, MonadIO m, IsSocketConnectable a) => a -> m (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, MonadIO m) => Word32 -> m (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, MonadIO m, IsProxyResolver a) => a -> m (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, MonadIO m) => Text -> m (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