gi-gio-2.0.19: Gio bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gio.Objects.NativeSocketAddress

Contents

Description

A socket address of some unknown native type.

Synopsis

Exported types

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