Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
An IPv4 or IPv6 socket address; that is, the combination of a
InetAddress
and a port number.
Synopsis
- newtype InetSocketAddress = InetSocketAddress (ManagedPtr InetSocketAddress)
- class (GObject o, IsDescendantOf InetSocketAddress o) => IsInetSocketAddress o
- toInetSocketAddress :: (MonadIO m, IsInetSocketAddress o) => o -> m InetSocketAddress
- inetSocketAddressGetAddress :: (HasCallStack, MonadIO m, IsInetSocketAddress a) => a -> m InetAddress
- inetSocketAddressGetFlowinfo :: (HasCallStack, MonadIO m, IsInetSocketAddress a) => a -> m Word32
- inetSocketAddressGetPort :: (HasCallStack, MonadIO m, IsInetSocketAddress a) => a -> m Word16
- inetSocketAddressGetScopeId :: (HasCallStack, MonadIO m, IsInetSocketAddress a) => a -> m Word32
- inetSocketAddressNew :: (HasCallStack, MonadIO m, IsInetAddress a) => a -> Word16 -> m InetSocketAddress
- inetSocketAddressNewFromString :: (HasCallStack, MonadIO m) => Text -> Word32 -> m (Maybe InetSocketAddress)
- constructInetSocketAddressAddress :: (IsInetSocketAddress o, MonadIO m, IsInetAddress a) => a -> m (GValueConstruct o)
- getInetSocketAddressAddress :: (MonadIO m, IsInetSocketAddress o) => o -> m InetAddress
- constructInetSocketAddressFlowinfo :: (IsInetSocketAddress o, MonadIO m) => Word32 -> m (GValueConstruct o)
- getInetSocketAddressFlowinfo :: (MonadIO m, IsInetSocketAddress o) => o -> m Word32
- constructInetSocketAddressPort :: (IsInetSocketAddress o, MonadIO m) => Word32 -> m (GValueConstruct o)
- getInetSocketAddressPort :: (MonadIO m, IsInetSocketAddress o) => o -> m Word32
- constructInetSocketAddressScopeId :: (IsInetSocketAddress o, MonadIO m) => Word32 -> m (GValueConstruct o)
- getInetSocketAddressScopeId :: (MonadIO m, IsInetSocketAddress o) => o -> m Word32
Exported types
newtype InetSocketAddress Source #
Memory-managed wrapper type.
Instances
Eq InetSocketAddress Source # | |
Defined in GI.Gio.Objects.InetSocketAddress (==) :: InetSocketAddress -> InetSocketAddress -> Bool # (/=) :: InetSocketAddress -> InetSocketAddress -> Bool # | |
GObject InetSocketAddress Source # | |
Defined in GI.Gio.Objects.InetSocketAddress | |
ManagedPtrNewtype InetSocketAddress Source # | |
TypedObject InetSocketAddress Source # | |
Defined in GI.Gio.Objects.InetSocketAddress | |
HasParentTypes InetSocketAddress Source # | |
Defined in GI.Gio.Objects.InetSocketAddress | |
IsGValue (Maybe InetSocketAddress) Source # | Convert |
Defined in GI.Gio.Objects.InetSocketAddress gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe InetSocketAddress -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe InetSocketAddress) # | |
type ParentTypes InetSocketAddress Source # | |
Defined in GI.Gio.Objects.InetSocketAddress |
class (GObject o, IsDescendantOf InetSocketAddress o) => IsInetSocketAddress o Source #
Type class for types which can be safely cast to InetSocketAddress
, for instance with toInetSocketAddress
.
Instances
(GObject o, IsDescendantOf InetSocketAddress o) => IsInetSocketAddress o Source # | |
Defined in GI.Gio.Objects.InetSocketAddress |
toInetSocketAddress :: (MonadIO m, IsInetSocketAddress o) => o -> m InetSocketAddress Source #
Cast to InetSocketAddress
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, enumerate, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, proxyEnumerate, ref, refSink, runDispose, stealData, stealQdata, thawNotify, toNative, toString, unref, watchClosure.
Getters
getAddress, getData, getFamily, getFlowinfo, getNativeSize, getPort, getProperty, getQdata, getScopeId.
Setters
getAddress
inetSocketAddressGetAddress Source #
:: (HasCallStack, MonadIO m, IsInetSocketAddress a) | |
=> a |
|
-> m InetAddress | Returns: the |
Gets address
's InetAddress
.
Since: 2.22
getFlowinfo
inetSocketAddressGetFlowinfo Source #
:: (HasCallStack, MonadIO m, IsInetSocketAddress a) | |
=> a |
|
-> m Word32 | Returns: the flowinfo field |
Gets the sin6_flowinfo
field from address
,
which must be an IPv6 address.
Since: 2.32
getPort
inetSocketAddressGetPort Source #
:: (HasCallStack, MonadIO m, IsInetSocketAddress a) | |
=> a |
|
-> m Word16 | Returns: the port for |
Gets address
's port.
Since: 2.22
getScopeId
inetSocketAddressGetScopeId Source #
:: (HasCallStack, MonadIO m, IsInetSocketAddress a) | |
=> a |
|
-> m Word32 | Returns: the scope id field |
Gets the sin6_scope_id
field from address
,
which must be an IPv6 address.
Since: 2.32
new
:: (HasCallStack, MonadIO m, IsInetAddress a) | |
=> a |
|
-> Word16 |
|
-> m InetSocketAddress | Returns: a new |
Creates a new InetSocketAddress
for address
and port
.
Since: 2.22
newFromString
inetSocketAddressNewFromString Source #
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> Word32 |
|
-> m (Maybe InetSocketAddress) | Returns: a new |
Creates a new InetSocketAddress
for address
and port
.
If address
is an IPv6 address, it can also contain a scope ID
(separated from the address by a %
).
Since: 2.40
Properties
address
No description available in the introspection data.
constructInetSocketAddressAddress :: (IsInetSocketAddress o, MonadIO m, IsInetAddress a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “address
” property. This is rarely needed directly, but it is used by new
.
getInetSocketAddressAddress :: (MonadIO m, IsInetSocketAddress o) => o -> m InetAddress Source #
Get the value of the “address
” property.
When overloading is enabled, this is equivalent to
get
inetSocketAddress #address
flowinfo
The sin6_flowinfo
field, for IPv6 addresses.
Since: 2.32
constructInetSocketAddressFlowinfo :: (IsInetSocketAddress o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “flowinfo
” property. This is rarely needed directly, but it is used by new
.
getInetSocketAddressFlowinfo :: (MonadIO m, IsInetSocketAddress o) => o -> m Word32 Source #
Get the value of the “flowinfo
” property.
When overloading is enabled, this is equivalent to
get
inetSocketAddress #flowinfo
port
No description available in the introspection data.
constructInetSocketAddressPort :: (IsInetSocketAddress o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “port
” property. This is rarely needed directly, but it is used by new
.
getInetSocketAddressPort :: (MonadIO m, IsInetSocketAddress o) => o -> m Word32 Source #
Get the value of the “port
” property.
When overloading is enabled, this is equivalent to
get
inetSocketAddress #port
scopeId
No description available in the introspection data.
constructInetSocketAddressScopeId :: (IsInetSocketAddress o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “scope-id
” property. This is rarely needed directly, but it is used by new
.
getInetSocketAddressScopeId :: (MonadIO m, IsInetSocketAddress o) => o -> m Word32 Source #
Get the value of the “scope-id
” property.
When overloading is enabled, this is equivalent to
get
inetSocketAddress #scopeId