Stores serialized information from end_point derived classes.
Constructors | |
| socket_address (sockets::address_family address_family) | |
| Creates a new instance of the xtd::net::socket_address class for the given address family. More... | |
| socket_address (sockets::address_family address_family, size_t buffer_size) | |
| Creates a new instance of the xtd::net::socket_address class using the specified address family and buffer size. More... | |
| socket_address (const std::vector< xtd::byte > &buffer) | |
| Creates a new instance of the xtd::net::socket_address class using the specified byte buffer . More... | |
Properties | |
| sockets::address_family | address_family () const |
| Gets the address family to which the endpoint belongs. More... | |
| size_t | size () const |
| Gets the underlying buffer size of the xtd::net::socket_address. More... | |
Operators | |
| byte & | operator[] (size_t index) |
| Gets or sets the specified index element in the underlying buffer. More... | |
| const byte & | operator[] (size_t index) const |
| Gets the specified index element in the underlying buffer. More... | |
Methods | |
| xtd::ustring | to_string () const noexcept override |
| Returns information about the socket address. More... | |
Additional Inherited Members | |
Public Member Functions inherited from xtd::object | |
| object ()=default | |
| Create a new instance of the ultimate base class object. More... | |
| bool | equals (const object &obj) const noexcept |
| Determines whether the specified object is equal to the current object. More... | |
| virtual size_t | get_hash_code () const noexcept |
| Serves as a hash function for a particular type. More... | |
| virtual type_object | get_type () const noexcept |
| Gets the type of the current instance. More... | |
| template<typename object_t > | |
| std::unique_ptr< object_t > | memberwise_clone () const noexcept |
| Creates a shallow copy of the current object. More... | |
Static Public Member Functions inherited from xtd::object | |
| static bool | equals (const object &object_a, const object &object_b) noexcept |
| Determines whether the specified object instances are considered equal. More... | |
| static bool | reference_equals (const object &object_a, const object &object_b) noexcept |
| Determines whether the specified object instances are the same instance. More... | |
|
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, |
| size_t | 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 .
| sockets::address_family xtd::net::socket_address::address_family | ( | ) | const |
Gets the address family to which the endpoint belongs.
| byte& xtd::net::socket_address::operator[] | ( | size_t | index | ) |
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. |
| const byte& xtd::net::socket_address::operator[] | ( | size_t | index | ) | const |
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. |
| size_t xtd::net::socket_address::size | ( | ) | const |
Gets the underlying buffer size of the xtd::net::socket_address.
|
overridevirtualnoexcept |
Returns information about the socket address.
Reimplemented from xtd::object.