gi-gio-2.0.29: Gio bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Gio.Objects.NativeSocketAddress

Description

A socket address of some unknown native type.

Synopsis

Exported types

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

Instances details
(GObject o, IsDescendantOf NativeSocketAddress o) => IsNativeSocketAddress o Source # 
Instance details

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

new

nativeSocketAddressNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Ptr ()

native: a native address object

-> Word64

len: the length of native, in bytes

-> m NativeSocketAddress

Returns: a new NativeSocketAddress

Creates a new NativeSocketAddress for native and len.

Since: 2.46