| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Gio.Objects.NativeSocketAddress
Contents
Description
A socket address of some unknown native type.
Synopsis
- newtype NativeSocketAddress = NativeSocketAddress (ManagedPtr NativeSocketAddress)
- class GObject o => IsNativeSocketAddress o
- toNativeSocketAddress :: (MonadIO m, IsNativeSocketAddress o) => o -> m NativeSocketAddress
- noNativeSocketAddress :: Maybe NativeSocketAddress
- nativeSocketAddressNew :: (HasCallStack, MonadIO m) => Ptr () -> Word64 -> m NativeSocketAddress
Exported types
newtype NativeSocketAddress Source #
Memory-managed wrapper type.
Constructors
| NativeSocketAddress (ManagedPtr NativeSocketAddress) |
Instances
class GObject o => IsNativeSocketAddress o Source #
Type class for types which can be safely cast to NativeSocketAddress, for instance with toNativeSocketAddress.
Instances
| (GObject a, (UnknownAncestorError NativeSocketAddress a :: Constraint)) => IsNativeSocketAddress a Source # | |
Defined in GI.Gio.Objects.NativeSocketAddress | |
| IsNativeSocketAddress NativeSocketAddress 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.
noNativeSocketAddress :: Maybe NativeSocketAddress Source #
A convenience alias for Nothing :: Maybe NativeSocketAddress.
Methods
new
nativeSocketAddressNew Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Ptr () |
|
| -> Word64 |
|
| -> m NativeSocketAddress | Returns: a new |
Creates a new NativeSocketAddress for native and len.
Since: 2.46