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.
Go to the documentation of this file.
1 #pragma once
6 #include "../../ustring.h"
9 #undef unix
13 namespace xtd {
15  namespace net {
17  namespace sockets {
28  enum class socket_shutdown {
30  receive = 0,
32  send = 1,
34  both = 2
35  };
38  inline std::ostream& operator<<(std::ostream& os, socket_shutdown value) {return os << to_string(value, {{socket_shutdown::receive, "receive"}, {socket_shutdown::send, "send"}, {socket_shutdown::both, "both"}});}
39  inline std::wostream& operator<<(std::wostream& os, socket_shutdown value) {return os << to_string(value, {{socket_shutdown::receive, L"receive"}, {socket_shutdown::send, L"send"}, {socket_shutdown::both, L"both"}});}
41  }
42  }
43 }
Disables a xtd::net::sockets::socket for sending. This field is constant.
Disables a xtd::net::sockets::socket for receiving. This field is constant.
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
Disables a xtd::net::sockets::socket for both sending and receiving. This field is constant...
Defines constants that are used by the xtd::net::sockets::socket::shutdown method.
Definition: socket_shutdown.h:28