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.
ip_protection_level.h
Go to the documentation of this file.
1 #pragma once
5 
6 #include "../../ustring.h"
7 
9 #undef unix
10 
13 namespace xtd {
15  namespace net {
17  namespace sockets {
28  enum class ip_protection_level {
30  unspecified = -1,
32  unrestricted = 10,
34  edge_restricted = 20,
36  restricted = 30
37  };
38 
40  inline std::ostream& operator<<(std::ostream& os, ip_protection_level value) {return os << to_string(value, {{ip_protection_level::unspecified, "unspecified"}, {ip_protection_level::unrestricted, "unrestricted"}, {ip_protection_level::edge_restricted, "edge_restricted"}, {ip_protection_level::restricted, "restricted"}});}
41  inline std::wostream& operator<<(std::wostream& os, ip_protection_level value) {return os << to_string(value, {{ip_protection_level::unspecified, L"unspecified"}, {ip_protection_level::unrestricted, L"unrestricted"}, {ip_protection_level::edge_restricted, L"edge_restricted"}, {ip_protection_level::restricted, L"restricted"}});}
43  }
44  }
45 }
ip_protection_level
A value that enables restriction of an IPv6 socket to a specified scope, such as addresses with the s...
Definition: ip_protection_level.h:28
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
std::string to_string(const date_time &value, const std::string &fmt, const std::locale &loc)
Convert a specified value into a string with specified format and locale.
Definition: date_time.h:1110
The IP protection level is edge restricted. This value would be used by applications designed to oper...
The IP protection level is restricted. This value would be used by intranet applications that do not ...
The IP protection level is unrestricted. This value would be used by applications designed to operate...