gio.inet_socket_address

Module for [InetSocketAddress] class

Types 3

An IPv4 or IPv6 socket address. That is, the combination of a [gio.inet_address.InetAddress] and a port number.

In UNIX terms, [gio.inet_socket_address.InetSocketAddress] corresponds to a

struct sockaddr_in or struct sockaddr_in6).
Methods
GType _gType() @property
InetSocketAddress self()Returns `this`, for use in `with` statements.
InetSocketAddressGidBuilder builder()Get builder for [gio.inetsocketaddress.InetSocketAddress] Returns: New builder object
gio.inet_address.InetAddress address() @propertyGet `address` property. Returns: The address.
uint flowinfo() @propertyGet `flowinfo` property. Returns: The `sin6_flowinfo` field, for IPv6 addresses.
uint port() @propertyGet `port` property. Returns: The port.
uint scopeId() @propertyGet `scopeId` property. Returns: The `sin6scopeid` field, for IPv6 addresses.
gio.inet_socket_address.InetSocketAddress newFromString(string address, uint port)Creates a new #GInetSocketAddress for address and port.
gio.inet_address.InetAddress getAddress()Gets address's #GInetAddress. Returns: the #GInetAddress for address, which must be [gobject.object.ObjectWrap.ref_]'d if it will be stored
uint getFlowinfo()Gets the `sin6_flowinfo` field from address, which must be an IPv6 address. Returns: the flowinfo field
ushort getPort()Gets address's port. Returns: the port for address
uint getScopeId()Gets the `sin6scopeid` field from address, which must be an IPv6 address. Returns: the scope id field
Constructors
this(void * ptr, Flag!"Take" take)
this(gio.inet_address.InetAddress address, ushort port)Creates a new #GInetSocketAddress for address and port.
Methods
T address(gio.inet_address.InetAddress propval)Set `address` property. Params: propval = The address. Returns: Builder instance for fluent chaining
T flowinfo(uint propval)Set `flowinfo` property. Params: propval = The `sin6_flowinfo` field, for IPv6 addresses. Returns: Builder instance for fluent chaining
T port(uint propval)Set `port` property. Params: propval = The port. Returns: Builder instance for fluent chaining
T scopeId(uint propval)Set `scopeId` property. Params: propval = The `sin6scopeid` field, for IPv6 addresses. Returns: Builder instance for fluent chaining

Fluent builder for [gio.inet_socket_address.InetSocketAddress]