xtd - Reference Guide
0.1.1
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
|
#include <end_point.h>
Inherits xtd::object.
Inherited by xtd::net::dns_end_point, and xtd::net::ip_end_point.
Public Member Functions | |
sockets::address_family | address_family () const noexcept |
Gets the address family to which the endpoint belongs. More... | |
virtual std::unique_ptr< end_point > | create (const socket_address &socket_address) const |
Creates an xtd::net::end_point instance from a socket_address instance. More... | |
virtual socket_address | serialize () const |
Serializes endpoint information into a socket_address instance. More... | |
ustring | to_string () const noexcept override |
Returns a string that represents the current object. More... | |
Public Member Functions inherited from xtd::object | |
object ()=default | |
Create a new instance of the ultimate base class object. More... | |
virtual 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... | |
template<typename object_t > | |
std::unique_ptr< object_t > | memberwise_clone () const |
Gets the type of the current instance. More... | |
Protected Member Functions | |
end_point (sockets::address_family address_family) | |
Initializes a new instance of the xtd::net::end_point class. More... | |
Additional Inherited Members | |
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... | |
|
inlineexplicitprotected |
Initializes a new instance of the xtd::net::end_point class.
|
noexcept |
Gets the address family to which the endpoint belongs.
|
virtual |
Creates an xtd::net::end_point instance from a socket_address instance.
socket_address | The socket address that serves as the endpoint for a connection. |
xtd::not_supported_exception | Any attempt is made to access the method when the method is not overridden in a descendant class. |
Reimplemented in xtd::net::ip_end_point.
|
virtual |
Serializes endpoint information into a socket_address instance.
Reimplemented in xtd::net::ip_end_point.
|
overridevirtualnoexcept |
Returns a string that represents the current object.
Reimplemented from xtd::object.
Reimplemented in xtd::net::ip_end_point.