InetSocketAddress in gio - Rust (original) (raw)

Struct InetSocketAddress

Source

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.

Source§

Source

Source

Creates a new #GInetSocketAddress for @address and @port.

§address

a #GInetAddress

§port

a port number

§Returns

a new #GInetSocketAddress

Source

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.

Source§

Source§

Makes a clone of this shared reference.

This increments the strong reference count of the object. Dropping the object will decrement it again.

1.0.0 · Source§

Performs copy-assignment from source. Read more

Source§

Source§

Source§

Converts to this type from the input type.

Source§

Source§

Converts to this type from the input type.

Source§

Source§

Source§

Hashes the memory address of this object.

1.3.0 · Source§

Source§

Source§

Comparison for two GObjects.

Compares the memory addresses of the provided objects.

1.21.0 · Source§

Compares and returns the maximum of two values. Read more

1.21.0 · Source§

Compares and returns the minimum of two values. Read more

1.50.0 · Source§

Restrict a value to a certain interval. Read more

Source§

Source§

Source§

Source§

Equality for two GObjects.

Two GObjects are equal if their memory addresses are equal.

1.0.0 · Source§

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Source§

Source§

Partial comparison for two GObjects.

Compares the memory addresses of the provided objects.

1.0.0 · Source§

Tests less than (for self and other) and is used by the < operator. Read more

1.0.0 · Source§

Tests less than or equal to (for self and other) and is used by the<= operator. Read more

1.0.0 · Source§

Tests greater than (for self and other) and is used by the >operator. Read more

1.0.0 · Source§

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Source§

Source§

Returns the type identifier of Self.

Source§

Source§

Source§

Source§

Source§

Source§

§

§

§

§