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.
select_mode.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 select_mode {
30  select_read = 0,
32  select_write = 1,
34  select_error = 2
35  };
36 
38  inline std::ostream& operator<<(std::ostream& os, select_mode value) {return os << to_string(value, {{select_mode::select_read, "select_read"}, {select_mode::select_write, "select_write"}, {select_mode::select_error, "select_error"}});}
39  inline std::wostream& operator<<(std::wostream& os, select_mode value) {return os << to_string(value, {{select_mode::select_read, L"select_read"}, {select_mode::select_write, L"select_write"}, {select_mode::select_error, L"select_error"}});}
41  }
42  }
43 }
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
select_mode
Defines the polling modes for the xtd::net::sockets::socket::poll method.
Definition: select_mode.h:28