It derives from <GSocketAddress>.
An IPv4 or IPv6 socket address. That is, the combination of a
<GInetAddress> and a port number.
In UNIX terms, <GInetSocketAddress>
corresponds to a ‘struct sockaddr_in‘ or
‘struct sockaddr_in6‘).
parent-instanceThe address.
Its value is a <GInetAddress>, or #f.
It can only be set when the object is made, with #:address.
The sin6_flowinfo field, for IPv6 addresses.
If unset this property is inherited from inet-socket-address:address.
Its value is an unsigned 32-bit integer.
It can only be set when the object is made, with #:flowinfo.
The port.
Its value is an unsigned 32-bit integer.
It can only be set when the object is made, with #:port.
The sin6_scope_id field, for IPv6 addresses.
If unset this property is inherited from inet-socket-address:address.
Its value is an unsigned 32-bit integer.
It can only be set when the object is made, with #:scope-id.
Gets self’s <GInetAddress>.
Passed: a <GInetSocketAddress>.
Returned: a <GInetAddress>.
the <GInetAddress> for self, which must
be object:ref’d if it will be stored
Gets the sin6_flowinfo field from self, which must be an
IPv6 address.
If not overridden this value will be inherited from
inet-socket-address:address.
Passed: a <GInetSocketAddress>.
Returned: an unsigned 32-bit integer.
the flowinfo field
Gets self’s port.
Passed: a <GInetSocketAddress>.
Returned: an unsigned 16-bit integer.
the port for self
Gets the sin6_scope_id field from self, which must be an
IPv6 address.
If not overridden this value will be inherited from
inet-socket-address:address.
Passed: a <GInetSocketAddress>.
Returned: an unsigned 32-bit integer.
the scope id field
Creates a new <GInetSocketAddress> for
address and port.
Passed: a <GInetAddress>.
Passed: an unsigned 16-bit integer.
a port number
Returned: a <GSocketAddress>.
a new <GInetSocketAddress>
Creates a new <GInetSocketAddress> for
address and port.
If address is an IPv6 address, it can also contain a scope ID
(separated from the address by a %). Note that currently this
behavior is platform specific. This may change in a future release.
Passed: a string.
the string form of an IP address
Passed: an unsigned 32-bit integer.
a port number
Returned: a <GSocketAddress>, or #f.
a new <GInetSocketAddress>, or #f
if address cannot be parsed.