Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
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.
Instances
Eq NativeSocketAddress Source # | |
Defined in GI.Gio.Objects.NativeSocketAddress (==) :: NativeSocketAddress -> NativeSocketAddress -> Bool # (/=) :: NativeSocketAddress -> NativeSocketAddress -> Bool # | |
IsGValue NativeSocketAddress Source # | Convert |
Defined in GI.Gio.Objects.NativeSocketAddress toGValue :: NativeSocketAddress -> IO GValue # fromGValue :: GValue -> IO NativeSocketAddress # | |
ManagedPtrNewtype NativeSocketAddress Source # | |
TypedObject NativeSocketAddress Source # | |
Defined in GI.Gio.Objects.NativeSocketAddress | |
GObject NativeSocketAddress Source # | |
Defined in GI.Gio.Objects.NativeSocketAddress | |
HasParentTypes NativeSocketAddress Source # | |
Defined in GI.Gio.Objects.NativeSocketAddress | |
type ParentTypes NativeSocketAddress Source # | |
Defined in GI.Gio.Objects.NativeSocketAddress |
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
Overloaded methods
new
nativeSocketAddressNew Source #
:: (HasCallStack, MonadIO m) | |
=> Ptr () |
|
-> Word64 |
|
-> m NativeSocketAddress | Returns: a new |
Creates a new NativeSocketAddress
for native
and len
.
Since: 2.46