6#include "../../ustring.h"
59 inline std::ostream& operator<<(std::ostream& os,
socket_flags value) {
return os <<
to_string(value, {{
socket_flags::none,
"none"}, {
socket_flags::out_of_band,
"out_of_band"}, {
socket_flags::peek,
"peek"}, {
socket_flags::dont_route,
"dont_route"}, {
socket_flags::max_io_vector_length,
"max_io_vector_length"}, {
socket_flags::truncated,
"truncated"}, {
socket_flags::control_data_truncated,
"control_data_truncated"}, {
socket_flags::broadcast,
"broadcast"}, {
socket_flags::multicast,
"multicast"}, {
socket_flags::partial,
"partial"}});}
60 inline std::wostream& operator<<(std::wostream& os,
socket_flags value) {
return os <<
to_string(value, {{
socket_flags::none, L
"none"}, {
socket_flags::out_of_band, L
"out_of_band"}, {
socket_flags::peek, L
"peek"}, {
socket_flags::dont_route, L
"dont_route"}, {
socket_flags::max_io_vector_length, L
"max_io_vector_length"}, {
socket_flags::truncated, L
"truncated"}, {
socket_flags::control_data_truncated, L
"control_data_truncated"}, {
socket_flags::broadcast, L
"broadcast"}, {
socket_flags::multicast, L
"multicast"}, {
socket_flags::partial, L
"partial"}});}
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_flags
Specifies socket send and receive behaviors. This enumeration has a flags attribute that allows a bit...
Definition socket_flags.h:24
@ none
none of the socket operations.
@ partial
Partial send or receive for message.
@ control_data_truncated
Indicates that the control data did not fit into an internal 64-KB buffer and was truncated.
@ none
Use no flags for this call.
@ max_io_vector_length
Provides a standard value for the number of WSABUF structures that are used to send and receive data.
@ multicast
Indicates a multicast packet.
@ peek
Peek at the incoming message.
@ truncated
The message was too large to fit into the specified buffer and was truncated.
@ dont_route
Send without using routing tables.
@ broadcast
Indicates a broadcast packet.
@ out_of_band
Process out-of-band data.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition system_report.h:17