gi-soup-2.4.7: Libsoup bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Soup.Objects.Address

Contents

Description

 

Synopsis

Exported types

newtype Address Source #

Constructors

Address (ManagedPtr Address) 

Instances

GObject Address Source # 
IsObject Address Source # 
IsSocketConnectable Address Source # 
IsAddress Address Source # 
((~) * info (ResolveAddressMethod t Address), MethodInfo * info Address p) => IsLabel t (Address -> p) Source # 

Methods

fromLabel :: Proxy# Symbol t -> Address -> p #

((~) * info (ResolveAddressMethod t Address), MethodInfo * info Address p) => IsLabelProxy t (Address -> p) Source # 

Methods

fromLabelProxy :: Proxy Symbol t -> Address -> p

HasAttributeList * Address Source # 
type SignalList Address Source # 
type SignalList Address
type AttributeList Address Source # 
type AttributeList Address

class GObject o => IsAddress o Source #

Instances

(GObject a, UnknownAncestorError Constraint Address a) => IsAddress a Source # 
IsAddress Address Source # 

Methods

equalByIp

data AddressEqualByIpMethodInfo Source #

Instances

((~) * signature (b -> m Bool), MonadIO m, IsAddress a, IsAddress b) => MethodInfo * AddressEqualByIpMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy AddressEqualByIpMethodInfo a -> signature -> s

equalByName

data AddressEqualByNameMethodInfo Source #

Instances

((~) * signature (b -> m Bool), MonadIO m, IsAddress a, IsAddress b) => MethodInfo * AddressEqualByNameMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy AddressEqualByNameMethodInfo a -> signature -> s

getGsockaddr

data AddressGetGsockaddrMethodInfo Source #

Instances

((~) * signature (m SocketAddress), MonadIO m, IsAddress a) => MethodInfo * AddressGetGsockaddrMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy AddressGetGsockaddrMethodInfo a -> signature -> s

addressGetGsockaddr :: (MonadIO m, IsAddress a) => a -> m SocketAddress Source #

getName

data AddressGetNameMethodInfo Source #

Instances

((~) * signature (m (Maybe Text)), MonadIO m, IsAddress a) => MethodInfo * AddressGetNameMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy AddressGetNameMethodInfo a -> signature -> s

addressGetName :: (MonadIO m, IsAddress a) => a -> m (Maybe Text) Source #

getPhysical

data AddressGetPhysicalMethodInfo Source #

Instances

((~) * signature (m (Maybe Text)), MonadIO m, IsAddress a) => MethodInfo * AddressGetPhysicalMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy AddressGetPhysicalMethodInfo a -> signature -> s

addressGetPhysical :: (MonadIO m, IsAddress a) => a -> m (Maybe Text) Source #

getPort

data AddressGetPortMethodInfo Source #

Instances

((~) * signature (m Word32), MonadIO m, IsAddress a) => MethodInfo * AddressGetPortMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy AddressGetPortMethodInfo a -> signature -> s

hashByIp

data AddressHashByIpMethodInfo Source #

Instances

((~) * signature (m Word32), MonadIO m, IsAddress a) => MethodInfo * AddressHashByIpMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy AddressHashByIpMethodInfo a -> signature -> s

hashByName

data AddressHashByNameMethodInfo Source #

Instances

((~) * signature (m Word32), MonadIO m, IsAddress a) => MethodInfo * AddressHashByNameMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy AddressHashByNameMethodInfo a -> signature -> s

isResolved

data AddressIsResolvedMethodInfo Source #

Instances

((~) * signature (m Bool), MonadIO m, IsAddress a) => MethodInfo * AddressIsResolvedMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy AddressIsResolvedMethodInfo a -> signature -> s

new

addressNew :: MonadIO m => Text -> Word32 -> m Address Source #

newAny

newFromSockaddr

resolveAsync

data AddressResolveAsyncMethodInfo Source #

Instances

((~) * signature (Maybe MainContext -> Maybe b -> AddressCallback -> m ()), MonadIO m, IsAddress a, IsCancellable b) => MethodInfo * AddressResolveAsyncMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy AddressResolveAsyncMethodInfo a -> signature -> s

addressResolveAsync :: (MonadIO m, IsAddress a, IsCancellable b) => a -> Maybe MainContext -> Maybe b -> AddressCallback -> m () Source #

resolveSync

data AddressResolveSyncMethodInfo Source #

Instances

((~) * signature (Maybe b -> m Word32), MonadIO m, IsAddress a, IsCancellable b) => MethodInfo * AddressResolveSyncMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy AddressResolveSyncMethodInfo a -> signature -> s

addressResolveSync :: (MonadIO m, IsAddress a, IsCancellable b) => a -> Maybe b -> m Word32 Source #

Properties

family

data AddressFamilyPropertyInfo Source #

Instances

AttrInfo AddressFamilyPropertyInfo Source # 

Associated Types

type AttrAllowedOps AddressFamilyPropertyInfo :: [AttrOpTag]

type AttrSetTypeConstraint AddressFamilyPropertyInfo :: * -> Constraint

type AttrBaseTypeConstraint AddressFamilyPropertyInfo :: * -> Constraint

type AttrGetType AddressFamilyPropertyInfo :: *

type AttrLabel AddressFamilyPropertyInfo :: Symbol

type AttrOrigin AddressFamilyPropertyInfo :: *

Methods

attrGet :: AttrBaseTypeConstraint AddressFamilyPropertyInfo o => Proxy * AddressFamilyPropertyInfo -> o -> IO (AttrGetType AddressFamilyPropertyInfo)

attrSet :: (AttrBaseTypeConstraint AddressFamilyPropertyInfo o, AttrSetTypeConstraint AddressFamilyPropertyInfo b) => Proxy * AddressFamilyPropertyInfo -> o -> b -> IO ()

attrClear :: AttrBaseTypeConstraint AddressFamilyPropertyInfo o => Proxy * AddressFamilyPropertyInfo -> o -> IO ()

attrConstruct :: (AttrBaseTypeConstraint AddressFamilyPropertyInfo o, AttrSetTypeConstraint AddressFamilyPropertyInfo b) => Proxy * AddressFamilyPropertyInfo -> b -> IO (GValueConstruct o)

type AttrSetTypeConstraint AddressFamilyPropertyInfo Source # 
type AttrSetTypeConstraint AddressFamilyPropertyInfo = * ~ AddressFamily
type AttrOrigin AddressFamilyPropertyInfo Source # 
type AttrLabel AddressFamilyPropertyInfo Source # 
type AttrLabel AddressFamilyPropertyInfo = "family"
type AttrGetType AddressFamilyPropertyInfo Source # 
type AttrBaseTypeConstraint AddressFamilyPropertyInfo Source # 
type AttrBaseTypeConstraint AddressFamilyPropertyInfo = IsAddress
type AttrAllowedOps AddressFamilyPropertyInfo Source # 
type AttrAllowedOps AddressFamilyPropertyInfo = (:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))

addressFamily :: AttrLabelProxy "family" Source #

constructAddressFamily :: IsAddress o => AddressFamily -> IO (GValueConstruct o) Source #

name

data AddressNamePropertyInfo Source #

Instances

AttrInfo AddressNamePropertyInfo Source # 

Associated Types

type AttrAllowedOps AddressNamePropertyInfo :: [AttrOpTag]

type AttrSetTypeConstraint AddressNamePropertyInfo :: * -> Constraint

type AttrBaseTypeConstraint AddressNamePropertyInfo :: * -> Constraint

type AttrGetType AddressNamePropertyInfo :: *

type AttrLabel AddressNamePropertyInfo :: Symbol

type AttrOrigin AddressNamePropertyInfo :: *

Methods

attrGet :: AttrBaseTypeConstraint AddressNamePropertyInfo o => Proxy * AddressNamePropertyInfo -> o -> IO (AttrGetType AddressNamePropertyInfo)

attrSet :: (AttrBaseTypeConstraint AddressNamePropertyInfo o, AttrSetTypeConstraint AddressNamePropertyInfo b) => Proxy * AddressNamePropertyInfo -> o -> b -> IO ()

attrClear :: AttrBaseTypeConstraint AddressNamePropertyInfo o => Proxy * AddressNamePropertyInfo -> o -> IO ()

attrConstruct :: (AttrBaseTypeConstraint AddressNamePropertyInfo o, AttrSetTypeConstraint AddressNamePropertyInfo b) => Proxy * AddressNamePropertyInfo -> b -> IO (GValueConstruct o)

type AttrSetTypeConstraint AddressNamePropertyInfo Source # 
type AttrSetTypeConstraint AddressNamePropertyInfo = * ~ Text
type AttrOrigin AddressNamePropertyInfo Source # 
type AttrLabel AddressNamePropertyInfo Source # 
type AttrLabel AddressNamePropertyInfo = "name"
type AttrGetType AddressNamePropertyInfo Source # 
type AttrGetType AddressNamePropertyInfo = Maybe Text
type AttrBaseTypeConstraint AddressNamePropertyInfo Source # 
type AttrBaseTypeConstraint AddressNamePropertyInfo = IsAddress
type AttrAllowedOps AddressNamePropertyInfo Source # 
type AttrAllowedOps AddressNamePropertyInfo = (:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ((:) AttrOpTag AttrClear ([] AttrOpTag)))

addressName :: AttrLabelProxy "name" Source #

constructAddressName :: IsAddress o => Text -> IO (GValueConstruct o) Source #

getAddressName :: (MonadIO m, IsAddress o) => o -> m (Maybe Text) Source #

physical

data AddressPhysicalPropertyInfo Source #

Instances

AttrInfo AddressPhysicalPropertyInfo Source # 

Associated Types

type AttrAllowedOps AddressPhysicalPropertyInfo :: [AttrOpTag]

type AttrSetTypeConstraint AddressPhysicalPropertyInfo :: * -> Constraint

type AttrBaseTypeConstraint AddressPhysicalPropertyInfo :: * -> Constraint

type AttrGetType AddressPhysicalPropertyInfo :: *

type AttrLabel AddressPhysicalPropertyInfo :: Symbol

type AttrOrigin AddressPhysicalPropertyInfo :: *

Methods

attrGet :: AttrBaseTypeConstraint AddressPhysicalPropertyInfo o => Proxy * AddressPhysicalPropertyInfo -> o -> IO (AttrGetType AddressPhysicalPropertyInfo)

attrSet :: (AttrBaseTypeConstraint AddressPhysicalPropertyInfo o, AttrSetTypeConstraint AddressPhysicalPropertyInfo b) => Proxy * AddressPhysicalPropertyInfo -> o -> b -> IO ()

attrClear :: AttrBaseTypeConstraint AddressPhysicalPropertyInfo o => Proxy * AddressPhysicalPropertyInfo -> o -> IO ()

attrConstruct :: (AttrBaseTypeConstraint AddressPhysicalPropertyInfo o, AttrSetTypeConstraint AddressPhysicalPropertyInfo b) => Proxy * AddressPhysicalPropertyInfo -> b -> IO (GValueConstruct o)

type AttrSetTypeConstraint AddressPhysicalPropertyInfo Source # 
type AttrSetTypeConstraint AddressPhysicalPropertyInfo = * ~ ()
type AttrOrigin AddressPhysicalPropertyInfo Source # 
type AttrLabel AddressPhysicalPropertyInfo Source # 
type AttrLabel AddressPhysicalPropertyInfo = "physical"
type AttrGetType AddressPhysicalPropertyInfo Source # 
type AttrGetType AddressPhysicalPropertyInfo = Maybe Text
type AttrBaseTypeConstraint AddressPhysicalPropertyInfo Source # 
type AttrBaseTypeConstraint AddressPhysicalPropertyInfo = IsAddress
type AttrAllowedOps AddressPhysicalPropertyInfo Source # 
type AttrAllowedOps AddressPhysicalPropertyInfo = (:) AttrOpTag AttrGet ((:) AttrOpTag AttrClear ([] AttrOpTag))

addressPhysical :: AttrLabelProxy "physical" Source #

getAddressPhysical :: (MonadIO m, IsAddress o) => o -> m (Maybe Text) Source #

port

data AddressPortPropertyInfo Source #

Instances

AttrInfo AddressPortPropertyInfo Source # 

Associated Types

type AttrAllowedOps AddressPortPropertyInfo :: [AttrOpTag]

type AttrSetTypeConstraint AddressPortPropertyInfo :: * -> Constraint

type AttrBaseTypeConstraint AddressPortPropertyInfo :: * -> Constraint

type AttrGetType AddressPortPropertyInfo :: *

type AttrLabel AddressPortPropertyInfo :: Symbol

type AttrOrigin AddressPortPropertyInfo :: *

Methods

attrGet :: AttrBaseTypeConstraint AddressPortPropertyInfo o => Proxy * AddressPortPropertyInfo -> o -> IO (AttrGetType AddressPortPropertyInfo)

attrSet :: (AttrBaseTypeConstraint AddressPortPropertyInfo o, AttrSetTypeConstraint AddressPortPropertyInfo b) => Proxy * AddressPortPropertyInfo -> o -> b -> IO ()

attrClear :: AttrBaseTypeConstraint AddressPortPropertyInfo o => Proxy * AddressPortPropertyInfo -> o -> IO ()

attrConstruct :: (AttrBaseTypeConstraint AddressPortPropertyInfo o, AttrSetTypeConstraint AddressPortPropertyInfo b) => Proxy * AddressPortPropertyInfo -> b -> IO (GValueConstruct o)

type AttrSetTypeConstraint AddressPortPropertyInfo Source # 
type AttrSetTypeConstraint AddressPortPropertyInfo = * ~ Int32
type AttrOrigin AddressPortPropertyInfo Source # 
type AttrLabel AddressPortPropertyInfo Source # 
type AttrLabel AddressPortPropertyInfo = "port"
type AttrGetType AddressPortPropertyInfo Source # 
type AttrGetType AddressPortPropertyInfo = Int32
type AttrBaseTypeConstraint AddressPortPropertyInfo Source # 
type AttrBaseTypeConstraint AddressPortPropertyInfo = IsAddress
type AttrAllowedOps AddressPortPropertyInfo Source # 
type AttrAllowedOps AddressPortPropertyInfo = (:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))

addressPort :: AttrLabelProxy "port" Source #

constructAddressPort :: IsAddress o => Int32 -> IO (GValueConstruct o) Source #

protocol

data AddressProtocolPropertyInfo Source #

Instances

AttrInfo AddressProtocolPropertyInfo Source # 

Associated Types

type AttrAllowedOps AddressProtocolPropertyInfo :: [AttrOpTag]

type AttrSetTypeConstraint AddressProtocolPropertyInfo :: * -> Constraint

type AttrBaseTypeConstraint AddressProtocolPropertyInfo :: * -> Constraint

type AttrGetType AddressProtocolPropertyInfo :: *

type AttrLabel AddressProtocolPropertyInfo :: Symbol

type AttrOrigin AddressProtocolPropertyInfo :: *

Methods

attrGet :: AttrBaseTypeConstraint AddressProtocolPropertyInfo o => Proxy * AddressProtocolPropertyInfo -> o -> IO (AttrGetType AddressProtocolPropertyInfo)

attrSet :: (AttrBaseTypeConstraint AddressProtocolPropertyInfo o, AttrSetTypeConstraint AddressProtocolPropertyInfo b) => Proxy * AddressProtocolPropertyInfo -> o -> b -> IO ()

attrClear :: AttrBaseTypeConstraint AddressProtocolPropertyInfo o => Proxy * AddressProtocolPropertyInfo -> o -> IO ()

attrConstruct :: (AttrBaseTypeConstraint AddressProtocolPropertyInfo o, AttrSetTypeConstraint AddressProtocolPropertyInfo b) => Proxy * AddressProtocolPropertyInfo -> b -> IO (GValueConstruct o)

type AttrSetTypeConstraint AddressProtocolPropertyInfo Source # 
type AttrSetTypeConstraint AddressProtocolPropertyInfo = * ~ Text
type AttrOrigin AddressProtocolPropertyInfo Source # 
type AttrLabel AddressProtocolPropertyInfo Source # 
type AttrLabel AddressProtocolPropertyInfo = "protocol"
type AttrGetType AddressProtocolPropertyInfo Source # 
type AttrGetType AddressProtocolPropertyInfo = Maybe Text
type AttrBaseTypeConstraint AddressProtocolPropertyInfo Source # 
type AttrBaseTypeConstraint AddressProtocolPropertyInfo = IsAddress
type AttrAllowedOps AddressProtocolPropertyInfo Source # 
type AttrAllowedOps AddressProtocolPropertyInfo = (:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ((:) AttrOpTag AttrClear ([] AttrOpTag)))

addressProtocol :: AttrLabelProxy "protocol" Source #

constructAddressProtocol :: IsAddress o => Text -> IO (GValueConstruct o) Source #

getAddressProtocol :: (MonadIO m, IsAddress o) => o -> m (Maybe Text) Source #

sockaddr

data AddressSockaddrPropertyInfo Source #

Instances

AttrInfo AddressSockaddrPropertyInfo Source # 

Associated Types

type AttrAllowedOps AddressSockaddrPropertyInfo :: [AttrOpTag]

type AttrSetTypeConstraint AddressSockaddrPropertyInfo :: * -> Constraint

type AttrBaseTypeConstraint AddressSockaddrPropertyInfo :: * -> Constraint

type AttrGetType AddressSockaddrPropertyInfo :: *

type AttrLabel AddressSockaddrPropertyInfo :: Symbol

type AttrOrigin AddressSockaddrPropertyInfo :: *

Methods

attrGet :: AttrBaseTypeConstraint AddressSockaddrPropertyInfo o => Proxy * AddressSockaddrPropertyInfo -> o -> IO (AttrGetType AddressSockaddrPropertyInfo)

attrSet :: (AttrBaseTypeConstraint AddressSockaddrPropertyInfo o, AttrSetTypeConstraint AddressSockaddrPropertyInfo b) => Proxy * AddressSockaddrPropertyInfo -> o -> b -> IO ()

attrClear :: AttrBaseTypeConstraint AddressSockaddrPropertyInfo o => Proxy * AddressSockaddrPropertyInfo -> o -> IO ()

attrConstruct :: (AttrBaseTypeConstraint AddressSockaddrPropertyInfo o, AttrSetTypeConstraint AddressSockaddrPropertyInfo b) => Proxy * AddressSockaddrPropertyInfo -> b -> IO (GValueConstruct o)

type AttrSetTypeConstraint AddressSockaddrPropertyInfo Source # 
type AttrSetTypeConstraint AddressSockaddrPropertyInfo = * ~ Ptr ()
type AttrOrigin AddressSockaddrPropertyInfo Source # 
type AttrLabel AddressSockaddrPropertyInfo Source # 
type AttrLabel AddressSockaddrPropertyInfo = "sockaddr"
type AttrGetType AddressSockaddrPropertyInfo Source # 
type AttrGetType AddressSockaddrPropertyInfo = Ptr ()
type AttrBaseTypeConstraint AddressSockaddrPropertyInfo Source # 
type AttrBaseTypeConstraint AddressSockaddrPropertyInfo = IsAddress
type AttrAllowedOps AddressSockaddrPropertyInfo Source # 
type AttrAllowedOps AddressSockaddrPropertyInfo = (:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))

addressSockaddr :: AttrLabelProxy "sockaddr" Source #

constructAddressSockaddr :: IsAddress o => Ptr () -> IO (GValueConstruct o) Source #

getAddressSockaddr :: (MonadIO m, IsAddress o) => o -> m (Ptr ()) Source #