xtd 0.2.0
Loading...
Searching...
No Matches
socket_information.h
Go to the documentation of this file.
1
4#pragma once
6#include "../../core_export.h"
7#include "../../object.h"
8#include "../../types.h"
9#include "../../string.h"
10
12namespace xtd {
14 namespace net {
16 namespace sockets {
34 public:
36
39 socket_information() = default;
41
45 socket_information& operator =(const socket_information&) = default;
47
49
59 socket_information& options(xtd::net::sockets::socket_information_options value) noexcept;
60
63 const std::vector<xtd::byte>& protocol_information() const noexcept;
67 socket_information& protocol_information(const std::vector<xtd::byte>& value) noexcept;
69
70 private:
71 xtd::net::sockets::socket_information_options options_ = xtd::net::sockets::socket_information_options::none;
72 std::vector<xtd::byte> protocol_information_;
73 };
74 }
75 }
76}
Encapsulates the information that is necessary to duplicate a xtd::net::sockets::socket.
Definition socket_information.h:33
socket_information()=default
Initializes a new instance of the xtd::net::sockets::socket_information class.
xtd::net::sockets::socket_information_options options() const noexcept
Gets the options for a xtd::net::sockets::socket.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:42
#define core_export_
Define shared library export.
Definition core_export.h:13
socket_information_options
Describes states for a xtd::net::sockets::socket. This enumeration has a flags attribute that allows ...
Definition socket_information_options.h:31
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Contains xtd::net::sockets::socket_information_options enum.