xtd 0.2.0
Loading...
Searching...
No Matches
socket_information.hpp
Go to the documentation of this file.
1
4#pragma once
7#include "../../object.hpp"
8#include "../../types.hpp"
9#include "../../string.hpp"
10
12namespace xtd {
14 namespace net {
16 namespace sockets {
34 public:
36
39 socket_information() = default;
41
45 auto operator =(socket_information&&) -> socket_information& = default;
46 auto operator =(const socket_information&) -> socket_information& = default;
48
50
55 [[nodiscard]] auto options() const noexcept -> xtd::net::sockets::socket_information_options;
61
64 [[nodiscard]] auto protocol_information() const noexcept -> const xtd::array<xtd::byte>&;
68 auto protocol_information(const xtd::array<xtd::byte>& value) noexcept -> socket_information&;
70
71 private:
73 xtd::array<xtd::byte> protocol_information_;
74 };
75 }
76 }
77}
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.hpp:64
auto options() const noexcept -> xtd::net::sockets::socket_information_options
Gets the options for a xtd::net::sockets::socket.
auto protocol_information() const noexcept -> const xtd::array< xtd::byte > &
Gets the protocol information for a xtd::net::sockets::socket.
socket_information()=default
Initializes a new instance of the xtd::net::sockets::socket_information class.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:45
Contains core_export_ keyword.
#define core_export_
Define shared library export.
Definition core_export.hpp:13
socket_information_options
Describes states for a xtd::net::sockets::socket. This enumeration has a flags attribute that allows ...
Definition socket_information_options.hpp:31
@ none
none of the socket operations.
Definition socket_async_operation.hpp:34
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::sockets::socket_information_options enum.
Contains xtd::string alias.
Contains xtd fundamental types.