xtd - Reference Guide  0.1.1
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
11 
13 namespace xtd {
15  namespace net {
17  namespace sockets {
25  enum class select_mode {
27  select_read = 0,
29  select_write = 1,
31  select_error = 2
32  };
33 
35  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"}});}
36  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"}});}
38  }
39  }
40 }
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
select_mode
Defines the polling modes for the xtd::net::sockets::socket::poll method.
Definition: select_mode.h:25
@ select_read
Read status mode.
@ select_write
Write status mode.
@ select_error
Error status mode.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17