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
InetSocketAddressGidBuilder builder() static nothrowGet builder for [gio.inet_socket_address.InetSocketAddress] Returns: New builder objectgio.inet_address.InetAddress address() @property nothrowGet `address` property. Returns: The address.uint flowinfo() @property nothrowGet `flowinfo` property. Returns: The `sin6_flowinfo` field, for IPv6 addresses.uint scopeId() @property nothrowGet `scopeId` property. Returns: The `sin6_scope_id` field, for IPv6 addresses.gio.inet_socket_address.InetSocketAddress newFromString(string address, uint port) static nothrowCreates a new #GInetSocketAddress for address and port.gio.inet_address.InetAddress getAddress() nothrowGets address's #GInetAddress. Returns: the #GInetAddress for address, which must be [gobject.object.ObjectWrap.ref_]'d if it will be storeduint getFlowinfo() nothrowGets the `sin6_flowinfo` field from address, which must be an IPv6 address. Returns: the flowinfo fielduint getScopeId() nothrowGets the `sin6_scope_id` field from address, which must be an IPv6 address. Returns: the scope id fieldConstructors
this(gio.inet_address.InetAddress address, ushort port)Creates a new #GInetSocketAddress for address and port.Fluent builder implementation template for gio.inet_socket_address.InetSocketAddress
Methods
T address(gio.inet_address.InetAddress propval) nothrowSet `address` property. Params: propval = The address. Returns: Builder instance for fluent chainingT flowinfo(uint propval) nothrowSet `flowinfo` property. Params: propval = The `sin6_flowinfo` field, for IPv6 addresses. Returns: Builder instance for fluent chainingT port(uint propval) nothrowSet `port` property. Params: propval = The port. Returns: Builder instance for fluent chainingT scopeId(uint propval) nothrowSet `scopeId` property. Params: propval = The `sin6_scope_id` field, for IPv6 addresses. Returns: Builder instance for fluent chainingFluent builder for gio.inet_socket_address.InetSocketAddress
Methods