6#include "../../ustring.h"
50 inline std::ostream& operator<<(std::ostream& os,
socket_information_options value) {
return os <<
to_string(value, {{
socket_information_options::none,
"none"}, {
socket_information_options::non_blocking,
"non_blocking"}, {
socket_information_options::connected,
"connected"}, {
socket_information_options::listening,
"listening"}, {
socket_information_options::use_only_overlapped_io,
"use_only_overlapped_io"}});}
51 inline std::wostream& operator<<(std::wostream& os,
socket_information_options value) {
return os <<
to_string(value, {{
socket_information_options::none, L
"none"}, {
socket_information_options::non_blocking, L
"non_blocking"}, {
socket_information_options::connected, L
"connected"}, {
socket_information_options::listening, L
"listening"}, {
socket_information_options::use_only_overlapped_io, L
"use_only_overlapped_io"}});}
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
socket_information_options
Describes states for a xtd::net::sockets::socket. This enumeration has a flags attribute that allows ...
Definition socket_information_options.h:25
@ none
none of the socket operations.
@ connected
The Socket is connected.
@ use_only_overlapped_io
The Socket uses overlapped I/O.
@ none
Use no flags for this call.
@ listening
The Socket is listening for new connections.
@ non_blocking
The Socket is nonblocking.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition system_report.h:17