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 |
A socket address of some unknown native type.
Synopsis
- newtype NativeSocketAddress = NativeSocketAddress (ManagedPtr NativeSocketAddress)
- class (GObject o, IsDescendantOf NativeSocketAddress o) => IsNativeSocketAddress o
- toNativeSocketAddress :: (MonadIO m, IsNativeSocketAddress o) => o -> m NativeSocketAddress
- nativeSocketAddressNew :: (HasCallStack, MonadIO m) => Ptr () -> Word64 -> m NativeSocketAddress
Exported types
newtype NativeSocketAddress Source #
Memory-managed wrapper type.
NativeSocketAddress (ManagedPtr NativeSocketAddress) |
Instances
class (GObject o, IsDescendantOf NativeSocketAddress o) => IsNativeSocketAddress o Source #
Type class for types which can be safely cast to NativeSocketAddress
, for instance with toNativeSocketAddress
.
Instances
(GObject o, IsDescendantOf NativeSocketAddress o) => IsNativeSocketAddress o Source # | |
Defined in GI.Gio.Objects.NativeSocketAddress |
toNativeSocketAddress :: (MonadIO m, IsNativeSocketAddress o) => o -> m NativeSocketAddress Source #
Cast to NativeSocketAddress
, 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
getData, getFamily, getNativeSize, getProperty, getQdata.
Setters
new
nativeSocketAddressNew Source #
:: (HasCallStack, MonadIO m) | |
=> Ptr () |
|
-> Word64 |
|
-> m NativeSocketAddress | Returns: a new |
Creates a new NativeSocketAddress
for native
and len
.
Since: 2.46