InetSocketAddress

open class InetSocketAddress(pointer: <Error class: unknown class><<Error class: unknown class>>) : SocketAddress

An IPv4 or IPv6 socket address. That is, the combination of a class@Gio.InetAddress and a port number.

In UNIX terms, GInetSocketAddress corresponds to a man:sockaddr(3type).

Inheritors

Constructors

Link copied to clipboard
constructor(address: InetAddress, port: <Error class: unknown class>)

Creates a new #GInetSocketAddress for @address and @port.

constructor(address: String, port: <Error class: unknown class>)

Creates a new #GInetSocketAddress for @address and @port.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The address.

Link copied to clipboard

The family of the socket address.

Link copied to clipboard
open val flowinfo: <Error class: unknown class>

The sin6_flowinfo field, for IPv6 addresses.

Link copied to clipboard
val gioInetSocketAddressPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val gioSocketAddressPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open override val gioSocketConnectablePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open val port: <Error class: unknown class>

The port.

Link copied to clipboard
open val scopeId: <Error class: unknown class>

The sin6_scope_id field, for IPv6 addresses.

Functions

Link copied to clipboard

Creates a #GSocketAddressEnumerator for @connectable.

Link copied to clipboard

Gets @address's #GInetAddress.

Link copied to clipboard

Gets the socket family type of @address.

Link copied to clipboard
open fun getFlowinfo(): <Error class: unknown class>

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

Link copied to clipboard
open fun getNativeSize(): Long

Gets the size of @address's native struct sockaddr. You can use this to allocate memory to pass to g_socket_address_to_native().

Link copied to clipboard
open fun getPort(): <Error class: unknown class>

Gets @address's port.

Link copied to clipboard
open fun getScopeId(): <Error class: unknown class>

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

Link copied to clipboard

Creates a #GSocketAddressEnumerator for @connectable that will return a #GProxyAddress for each of its addresses that you must connect to via a proxy.