Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
A socket address of some unknown native type.
This corresponds to a general struct sockaddr
of a type not otherwise
handled by GLib.
Since: 2.46
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 () -> CSize -> 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 # | |
GObject NativeSocketAddress Source # | |
Defined in GI.Gio.Objects.NativeSocketAddress | |
ManagedPtrNewtype NativeSocketAddress Source # | |
TypedObject NativeSocketAddress Source # | |
Defined in GI.Gio.Objects.NativeSocketAddress | |
HasParentTypes NativeSocketAddress Source # | |
Defined in GI.Gio.Objects.NativeSocketAddress | |
IsGValue (Maybe NativeSocketAddress) Source # | Convert |
Defined in GI.Gio.Objects.NativeSocketAddress gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe NativeSocketAddress -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe 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
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 () |
|
-> CSize |
|
-> m NativeSocketAddress | Returns: a new |
Creates a new NativeSocketAddress
for native
and len
.
Since: 2.46