6#include "../core_export.h"
18 namespace sockets {
class socket;}
76 friend class sockets::socket;
77 std::vector<byte_t> bytes_;
Contains xtd::net::sockets::address_family enum.
Represents a network endpoint as an IP address and a port number.
Definition ip_end_point.h:20
Stores serialized information from end_point derived classes.
Definition socket_address.h:28
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 b...
const byte & operator[](size_t index) const
Gets the specified index element in the underlying buffer.
byte & operator[](size_t index)
Gets or sets the specified index element in the underlying buffer.
socket_address(sockets::address_family address_family)
Creates a new instance of the xtd::net::socket_address class for the given address family.
size_t size() const
Gets the underlying buffer size of the xtd::net::socket_address.
sockets::address_family address_family() const
Gets the address family to which the endpoint belongs.
socket_address(const std::vector< byte_t > &buffer)
Creates a new instance of the xtd::net::socket_address class using the specified byte buffer .
xtd::ustring to_string() const noexcept override
Returns information about the socket address.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:26
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:48
#define core_export_
Define shared library export.
Definition core_export.h:13
address_family
Specifies the addressing scheme that an instance of the xtd::net::sockets::socket class can use.
Definition address_family.h:24
@ socket
Socket options apply to all sockets.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition system_report.h:17