Stores serialized information from end_point derived classes. #par Deinition.
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:22
socket_address(sockets::address_family address_family)
Creates a new instance of the xtd::net::socket_address class for the given address family.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:44
#define core_export_
Define shared library export.
Definition core_export.hpp:13
- Header
#include <xtd/net/socket_address>
- Namespace
- xtd::net
- Library
- xtd.core
|
| byte & | operator[] (size_t index) |
| | Gets or sets the specified index element in the underlying buffer.
|
| |
| const byte & | operator[] (size_t index) const |
| | Gets the specified index element in the underlying buffer.
|
| |
|
| bool | equals (const object &obj) const noexcept override |
| | Determines whether the specified object is equal to the current object.
|
| |
| bool | equals (const socket_address &other) const noexcept override |
| | Determines whether the specified object is equal to the current object.
|
| |
| xtd::size | get_hash_code () const noexcept override |
| | Serves as a hash function for a particular type.
|
| |
| xtd::string | to_string () const noexcept override |
| | Returns information about the socket address.
|
| |
|
| | object ()=default |
| | Create a new instance of the ultimate base class object.
|
| |
| virtual type_object | get_type () const noexcept |
| | Gets the type of the current instance.
|
| |
| template<class object_t> |
| xtd::unique_ptr_object< object_t > | memberwise_clone () const |
| | Creates a shallow copy of the current object.
|
| |
| template<class object_a_t, class object_b_t> |
| static bool | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
| | Determines whether the specified object instances are considered equal.
|
| |
| template<class object_a_t, class object_b_t> |
| static bool | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
| | Determines whether the specified object instances are the same instance.
|
| |
◆ socket_address() [1/3]
◆ socket_address() [2/3]
◆ socket_address() [3/3]
◆ address_family()
◆ size()
| size_t xtd::net::socket_address::size |
( |
| ) |
const |
◆ operator[]() [1/2]
| byte & xtd::net::socket_address::operator[] |
( |
size_t | index | ) |
|
Gets or sets the specified index element in the underlying buffer.
- Parameters
-
| index | The array index element of the desired information. |
- Returns
- The value of the specified index element in the underlying buffer.
- Exceptions
-
- Note
- Be sure to call xtd::net::socket_address::size before referring to elements in the underlying buffer. Referring to an index that does not exist will cause the xtd::net::socket_address to throw an xtd::argument_out_of_range_exception.
◆ operator[]() [2/2]
| const byte & xtd::net::socket_address::operator[] |
( |
size_t | index | ) |
const |
◆ equals() [1/2]
| bool xtd::net::socket_address::equals |
( |
const object & | obj | ) |
const |
|
overridevirtualnoexcept |
Determines whether the specified object is equal to the current object.
- Parameters
-
| obj | The object to compare with the current object. |
- Returns
true if the specified object is equal to the current object. otherwise, false.
Reimplemented from xtd::object.
◆ equals() [2/2]
| bool xtd::net::socket_address::equals |
( |
const socket_address & | other | ) |
const |
|
overridevirtualnoexcept |
Determines whether the specified object is equal to the current object.
- Parameters
-
| other | The object to compare with the current object. |
- Returns
true if the specified object is equal to the current object. otherwise, false.
Implements xtd::iequatable< xtd::net::socket_address >.
◆ get_hash_code()
| xtd::size xtd::net::socket_address::get_hash_code |
( |
| ) |
const |
|
overridevirtualnoexcept |
Serves as a hash function for a particular type.
- Returns
- A hash code for the current object.
Reimplemented from xtd::object.
◆ to_string()
| xtd::string xtd::net::socket_address::to_string |
( |
| ) |
const |
|
overridevirtualnoexcept |
The documentation for this class was generated from the following file: