xtd 0.2.0
socket_information.h
Go to the documentation of this file.
1 #pragma once
6 #include "../../core_export.h"
7 #include "../../object.h"
8 #include "../../types.h"
9 #include "../../ustring.h"
10 
12 namespace xtd {
14  namespace net {
16  namespace sockets {
31  class core_export_ socket_information : public xtd::object {
32  public:
34 
37  socket_information() = default;
39 
43  socket_information& operator =(const socket_information&) = default;
45 
47 
52  xtd::net::sockets::socket_information_options options() const noexcept;
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:
70  std::vector<xtd::byte> protocol_information_;
71  };
72  }
73  }
74 }
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Contains xtd::net::sockets::socket_information_options enum.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes...
Definition: object.h:32
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
Encapsulates the information that is necessary to duplicate a xtd::net::sockets::socket.
Definition: socket_information.h:31