gi-gio-2.0.25: Gio bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gio.Objects.InetSocketAddress

Description

An IPv4 or IPv6 socket address; that is, the combination of a InetAddress and a port number.

Synopsis

Exported types

class (GObject o, IsDescendantOf InetSocketAddress o) => IsInetSocketAddress o Source #

Type class for types which can be safely cast to InetSocketAddress, for instance with toInetSocketAddress.

Instances

Instances details
(GObject o, IsDescendantOf InetSocketAddress o) => IsInetSocketAddress o Source # 
Instance details

Defined in GI.Gio.Objects.InetSocketAddress

toInetSocketAddress :: (MonadIO m, IsInetSocketAddress o) => o -> m InetSocketAddress Source #

Cast to InetSocketAddress, for types for which this is known to be safe. For general casts, use castTo.

Methods

Overloaded methods

getAddress

inetSocketAddressGetAddress Source #

Arguments

:: (HasCallStack, MonadIO m, IsInetSocketAddress a) 
=> a

address: a InetSocketAddress

-> m InetAddress

Returns: the InetAddress for address, which must be objectRef'd if it will be stored

Gets address's InetAddress.

Since: 2.22

getFlowinfo

inetSocketAddressGetFlowinfo Source #

Arguments

:: (HasCallStack, MonadIO m, IsInetSocketAddress a) 
=> a

address: a SocketFamilyIpv6 InetSocketAddress

-> m Word32

Returns: the flowinfo field

Gets the sin6_flowinfo field from address, which must be an IPv6 address.

Since: 2.32

getPort

inetSocketAddressGetPort Source #

Arguments

:: (HasCallStack, MonadIO m, IsInetSocketAddress a) 
=> a

address: a InetSocketAddress

-> m Word16

Returns: the port for address

Gets address's port.

Since: 2.22

getScopeId

inetSocketAddressGetScopeId Source #

Arguments

:: (HasCallStack, MonadIO m, IsInetSocketAddress a) 
=> a

address: a SocketFamilyIpv6 InetAddress

-> m Word32

Returns: the scope id field

Gets the sin6_scope_id field from address, which must be an IPv6 address.

Since: 2.32

new

inetSocketAddressNew Source #

Arguments

:: (HasCallStack, MonadIO m, IsInetAddress a) 
=> a

address: a InetAddress

-> Word16

port: a port number

-> m InetSocketAddress

Returns: a new InetSocketAddress

Creates a new InetSocketAddress for address and port.

Since: 2.22

newFromString

inetSocketAddressNewFromString Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

address: the string form of an IP address

-> Word32

port: a port number

-> m InetSocketAddress

Returns: a new InetSocketAddress, or Nothing if address cannot be parsed.

Creates a new InetSocketAddress for address and port.

If address is an IPv6 address, it can also contain a scope ID (separated from the address by a %).

Since: 2.40

Properties

address

No description available in the introspection data.

constructInetSocketAddressAddress :: (IsInetSocketAddress o, IsInetAddress a) => a -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “address” property. This is rarely needed directly, but it is used by new.

getInetSocketAddressAddress :: (MonadIO m, IsInetSocketAddress o) => o -> m InetAddress Source #

Get the value of the “address” property. When overloading is enabled, this is equivalent to

get inetSocketAddress #address

flowinfo

The sin6_flowinfo field, for IPv6 addresses.

Since: 2.32

constructInetSocketAddressFlowinfo :: IsInetSocketAddress o => Word32 -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “flowinfo” property. This is rarely needed directly, but it is used by new.

getInetSocketAddressFlowinfo :: (MonadIO m, IsInetSocketAddress o) => o -> m Word32 Source #

Get the value of the “flowinfo” property. When overloading is enabled, this is equivalent to

get inetSocketAddress #flowinfo

port

No description available in the introspection data.

constructInetSocketAddressPort :: IsInetSocketAddress o => Word32 -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “port” property. This is rarely needed directly, but it is used by new.

getInetSocketAddressPort :: (MonadIO m, IsInetSocketAddress o) => o -> m Word32 Source #

Get the value of the “port” property. When overloading is enabled, this is equivalent to

get inetSocketAddress #port

scopeId

No description available in the introspection data.

constructInetSocketAddressScopeId :: IsInetSocketAddress o => Word32 -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “scope-id” property. This is rarely needed directly, but it is used by new.

getInetSocketAddressScopeId :: (MonadIO m, IsInetSocketAddress o) => o -> m Word32 Source #

Get the value of the “scope-id” property. When overloading is enabled, this is equivalent to

get inetSocketAddress #scopeId