xtd - Reference Guide  0.2.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
socket_information.h
Go to the documentation of this file.
1 #pragma once
5 
6 #include "../../core_export.h"
7 #include "../../object.h"
8 #include "../../types.h"
9 #include "../../ustring.h"
11 
13 namespace xtd {
15  namespace net {
17  namespace sockets {
30  class core_export_ socket_information : public xtd::object {
31  public:
33 
36  socket_information() = default;
38 
42  socket_information& operator=(const socket_information&) = default;
43  friend std::ostream& operator <<(std::ostream& os, const socket_information& mo) noexcept {return os << mo.to_string();}
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<byte_t>& protocol_information() const noexcept;
65  socket_information& protocol_information(const std::vector<byte_t>& value) noexcept;
67 
68  private:
70  std::vector<byte_t> protocol_information_;
71  };
72  }
73  }
74 }
virtual xtd::ustring to_string() const noexcept
Returns a sxd::ustring that represents the current object.
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:30
socket_information_options
Describes states for a xtd::net::sockets::socket. This enumeration has a flags attribute that allows ...
Definition: socket_information_options.h:28
Encapsulates the information that is necessary to duplicate a xtd::net::sockets::socket.
Definition: socket_information.h:30