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
InetSocketAddress self()Returns `this`, for use in `with` statements.InetSocketAddressGidBuilder builder()Get builder for [gio.inetsocketaddress.InetSocketAddress] Returns: New builder objectuint flowinfo() @propertyGet `flowinfo` property. Returns: The `sin6_flowinfo` field, for IPv6 addresses.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 storeduint getFlowinfo()Gets the `sin6_flowinfo` field from address, which must be an IPv6 address. Returns: the flowinfo fieldushort getPort()Gets address's port. Returns: the port for addressuint getScopeId()Gets the `sin6scopeid` 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.Methods
T address(gio.inet_address.InetAddress propval)Set `address` property. Params: propval = The address. Returns: Builder instance for fluent chainingT flowinfo(uint propval)Set `flowinfo` property. Params: propval = The `sin6_flowinfo` field, for IPv6 addresses. Returns: Builder instance for fluent chainingT port(uint propval)Set `port` property. Params: propval = The port. Returns: Builder instance for fluent chainingT scopeId(uint propval)Set `scopeId` property. Params: propval = The `sin6scopeid` field, for IPv6 addresses. Returns: Builder instance for fluent chainingFluent builder for [gio.inet_socket_address.InetSocketAddress]
Methods