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.
socket_async_operation.h
Go to the documentation of this file.
1 #pragma once
5 
6 #include "../../ustring.h"
7 
9 #undef accept
10 
13 namespace xtd {
15  namespace net {
17  namespace sockets {
31  none = 0,
33  accept = 1,
35  connect = 2,
37  disconnect = 3,
39  receive = 4,
41  receive_from = 5,
45  send = 7,
47  send_packets = 8,
49  send_to = 9,
50  };
51 
53  inline std::ostream& operator<<(std::ostream& os, socket_async_operation value) {return os << to_string(value, {{socket_async_operation::none, "none"}, {socket_async_operation::accept, "accept"}, {socket_async_operation::connect, "connect"}, {socket_async_operation::disconnect, "disconnect"}, {socket_async_operation::receive, "receive"}, {socket_async_operation::receive_from, "receive_from"}, {socket_async_operation::receive_message_from, "receive_message_from"}, {socket_async_operation::send, "send"}, {socket_async_operation::send_packets, "send_packets"}, {socket_async_operation::send_to, "send_to"}});}
54  inline std::wostream& operator<<(std::wostream& os, socket_async_operation value) {return os << to_string(value, {{socket_async_operation::none, L"none"}, {socket_async_operation::accept, L"accept"}, {socket_async_operation::connect, L"connect"}, {socket_async_operation::disconnect, L"disconnect"}, {socket_async_operation::receive, L"receive"}, {socket_async_operation::receive_from, L"receive_from"}, {socket_async_operation::receive_message_from, L"receive_message_from"}, {socket_async_operation::send, L"send"}, {socket_async_operation::send_packets, L"send_packets"}, {socket_async_operation::send_to, L"send_to"}});}
56  }
57  }
58 }
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
socket_async_operation
The type of asynchronous socket operation most recently performed with this context object...
Definition: socket_async_operation.h:29