Stores serialized information from end_point derived classes. #par Deinition.
Public Constructors | |
| socket_address (sockets::address_family address_family) | |
| Creates a new instance of the xtd::net::socket_address class for the given address family. | |
| socket_address (sockets::address_family address_family, xtd::usize buffer_size) | |
| Creates a new instance of the xtd::net::socket_address class using the specified address family and buffer size. | |
| socket_address (const xtd::array< xtd::byte > &buffer) | |
| Creates a new instance of the xtd::net::socket_address class using the specified byte buffer . | |
Public Properties | |
| auto | address_family () const -> xtd::net::sockets::address_family |
| Gets the address family to which the endpoint belongs. | |
| auto | size () const -> xtd::usize |
| Gets the underlying buffer size of the xtd::net::socket_address. | |
Public Methods | |
| auto | equals (const xtd::object &obj) const noexcept -> bool override |
| Determines whether the specified object is equal to the current object. | |
| auto | equals (const socket_address &other) const noexcept -> bool override |
| Determines whether the specified object is equal to the current object. | |
| auto | get_hash_code () const noexcept -> xtd::usize override |
| Serves as a hash function for a particular type. | |
| auto | to_string () const noexcept -> xtd::string override |
| Returns information about the socket address. | |
Public Operators | |
| auto | operator[] (xtd::usize index) -> xtd::byte & |
| Gets or sets the specified index element in the underlying buffer. | |
| auto | operator[] (xtd::usize index) const -> const xtd::byte & |
| Gets the specified index element in the underlying buffer. | |
Additional Inherited Members | |
| object ()=default | |
| Create a new instance of the ultimate base class object. | |
| virtual auto | get_type () const noexcept -> type_object |
| Gets the type of the current instance. | |
| template<typename object_t> | |
| auto | memberwise_clone () const -> xtd::unique_ptr_object< object_t > |
| Creates a shallow copy of the current object. | |
| template<typename object_a_t, typename object_b_t> | |
| static auto | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool |
| Determines whether the specified object instances are considered equal. | |
| template<typename object_a_t, typename object_b_t> | |
| static auto | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool |
| Determines whether the specified object instances are the same instance. | |
|
explicit |
Creates a new instance of the xtd::net::socket_address class for the given address family.
| xtd::net::socket_address::socket_address | ( | sockets::address_family | address_family, |
| xtd::usize | buffer_size ) |
Creates a new instance of the xtd::net::socket_address class using the specified address family and buffer size.
|
explicit |
Creates a new instance of the xtd::net::socket_address class using the specified byte buffer .
|
nodiscard |
Gets the address family to which the endpoint belongs.
|
nodiscard |
Gets the underlying buffer size of the xtd::net::socket_address.
|
nodiscardoverridevirtualnoexcept |
Determines whether the specified object is equal to the current object.
| obj | The object to compare with the current object. |
Reimplemented from xtd::object.
|
nodiscardoverridevirtualnoexcept |
Determines whether the specified object is equal to the current object.
| other | The object to compare with the current object. |
Implements xtd::iequatable< xtd::net::socket_address >.
|
nodiscardoverridevirtualnoexcept |
Serves as a hash function for a particular type.
Reimplemented from xtd::object.
|
nodiscardoverridevirtualnoexcept |
Returns information about the socket address.
Reimplemented from xtd::object.
| auto xtd::net::socket_address::operator[] | ( | xtd::usize | index | ) | -> xtd::byte & |
Gets or sets the specified index element in the underlying buffer.
| index | The array index element of the desired information. |
| xtd::argument_out_of_range_exception | index is equal to or greater than size. |
| auto xtd::net::socket_address::operator[] | ( | xtd::usize | index | ) | const -> const xtd::byte & |
Gets the specified index element in the underlying buffer.
| index | The array index element of the desired information. |
| xtd::argument_out_of_range_exception | index is equal to or greater than size. |