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 "../../ustring.h"
10
12namespace xtd {
14 namespace net {
16 namespace sockets {
32 public:
34
37 socket_information() = default;
39
43 socket_information& operator =(const socket_information&) = default;
45
47
57 socket_information& options(xtd::net::sockets::socket_information_options value) noexcept;
58
61 const std::vector<xtd::byte>& protocol_information() const noexcept;
65 socket_information& protocol_information(const std::vector<xtd::byte>& value) noexcept;
67
68 private:
69 xtd::net::sockets::socket_information_options options_ = xtd::net::sockets::socket_information_options::none;
70 std::vector<xtd::byte> protocol_information_;
71 };
72 }
73 }
74}
Encapsulates the information that is necessary to duplicate a xtd::net::sockets::socket.
Definition socket_information.h:31
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:32
#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:29
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.