InetSocketAddress in gio - Rust (original) (raw)
Struct InetSocketAddress
pub struct InetSocketAddress { /* private fields */ }
Expand description
An IPv4 or IPv6 socket address. That is, the combination of aInetAddress and a port number.
In UNIX terms, GInetSocketAddress
corresponds to astruct sockaddr_in or struct sockaddr_in6.
§Properties
§address
The address.
Readable | Writeable | Construct Only
§flowinfo
The sin6_flowinfo
field, for IPv6 addresses.
Readable | Writeable | Construct Only
§port
The port.
Readable | Writeable | Construct Only
§scope-id
The sin6_scope_id
field, for IPv6 addresses.
Readable | Writeable | Construct Only
SocketAddress
§family
The family of the socket address.
Readable
§Implements
InetSocketAddressExt, SocketAddressExt, [trait@glib::ObjectExt
], SocketConnectableExt
GLib type: GObject with reference counted clone semantics.
Creates a new #GInetSocketAddress for @address and @port.
§address
a #GInetAddress
§port
a port number
§Returns
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 %
).
§address
the string form of an IP address
§port
a port number
§Returns
a new #GInetSocketAddress, or None if @address cannot be parsed.
Makes a clone of this shared reference.
This increments the strong reference count of the object. Dropping the object will decrement it again.
Performs copy-assignment from source
. Read more
Converts to this type from the input type.
Converts to this type from the input type.
Hashes the memory address of this object.
Comparison for two GObjects.
Compares the memory addresses of the provided objects.
Compares and returns the maximum of two values. Read more
Compares and returns the minimum of two values. Read more
Restrict a value to a certain interval. Read more
Equality for two GObjects.
Two GObjects are equal if their memory addresses are equal.
Tests for !=
. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Partial comparison for two GObjects.
Compares the memory addresses of the provided objects.
Tests less than (for self
and other
) and is used by the <
operator. Read more
Tests less than or equal to (for self
and other
) and is used by the<=
operator. Read more
Tests greater than (for self
and other
) and is used by the >
operator. Read more
Tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
Returns the type identifier of Self
.