xtd 0.2.0
end_point.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "socket_address.hpp"
7#include "../core_export.hpp"
8#include "../object.hpp"
9#include "../types.hpp"
10#include "../string.hpp"
11#include <memory>
12
14namespace xtd {
16 namespace net {
28 public:
30 end_point(end_point&& end_point) = default;
31 end_point(const end_point& end_point) = default;
32 end_point& operator =(const end_point&) = default;
34
36
42
44
51
54 virtual socket_address serialize() const;
55
58 string to_string() const noexcept override;
60
61 protected:
63
68
70 end_point() = default;
71
74 };
75 }
76}
Contains xtd::net::sockets::address_family enum.
Identifies a network address. This is an abstract class.
Definition end_point.hpp:27
sockets::address_family address_family() const noexcept
Gets the address family to which the endpoint belongs.
virtual xtd::uptr< end_point > create(const socket_address &socket_address) const
Creates an xtd::net::end_point instance from a socket_address instance.
virtual socket_address serialize() const
Serializes endpoint information into a socket_address instance.
string to_string() const noexcept override
Returns a string that represents the current object.
end_point(sockets::address_family address_family)
Initializes a new instance of the xtd::net::end_point class.
Definition end_point.hpp:66
Stores serialized information from end_point derived classes. #par Deinition.
Definition socket_address.hpp:36
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:44
Contains core_export_ keyword.
#define core_export_
Define shared library export.
Definition core_export.hpp:13
xtd::unique_ptr_object< type_t > uptr
The xtd::uptr object is a unique pointer.
Definition uptr.hpp:25
address_family
Specifies the addressing scheme that an instance of the xtd::net::sockets::socket class can use.
Definition address_family.hpp:30
@ unknown
Unknown address family.
Definition address_family.hpp:32
The xtd::net::sockets namespace provides a managed implementation of the Berkeley Sockets interface f...
Definition address_family.hpp:16
The xtd::net namespace provides a simple programming interface for many of the protocols used on netw...
Definition cookie_exception.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Contains xtd::object class.
Contains xtd::net::socket_address class.
Contains xtd::string alias.
Contains xtd fundamental types.