xtd - Reference Guide  0.1.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Loading...
Searching...
No Matches
ip_protection_level.h
Go to the documentation of this file.
1
4#pragma once
5
6#include "../../ustring.h"
7
9#undef unix
11
13namespace xtd {
15 namespace net {
17 namespace sockets {
27 unspecified = -1,
29 unrestricted = 10,
31 edge_restricted = 20,
33 restricted = 30
34 };
35
37 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"}});}
38 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"}});}
40 }
41 }
42}
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:25
std::string to_string(const value_t &value, const std::string &fmt, const std::locale &loc)
Convert a specified value into a string with specified format and locale.
Definition: to_string.h:37
@ unspecified
Unspecified address family.
@ edge_restricted
The IP protection level is edge restricted. This value would be used by applications designed to oper...
@ unrestricted
The IP protection level is unrestricted. This value would be used by applications designed to operate...
@ restricted
The IP protection level is restricted. This value would be used by intranet applications that do not ...
@ unspecified
The IP protection level is unspecified. On Windows 7 and Windows Server 2008 R2, the default value fo...
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17