5#include "../../enum.hpp"
60 explicit operator auto()
const noexcept {
return xtd::enum_collection<xtd::net::sockets::socket_flags> {{
xtd::net::sockets::socket_flags::none,
"none"}, {
xtd::net::sockets::socket_flags::out_of_band,
"out_of_band"}, {
xtd::net::sockets::socket_flags::peek,
"peek"}, {
xtd::net::sockets::socket_flags::dont_route,
"dont_route"}, {
xtd::net::sockets::socket_flags::max_io_vector_length,
"max_io_vector_length"}, {
xtd::net::sockets::socket_flags::truncated,
"truncated"}, {
xtd::net::sockets::socket_flags::control_data_truncated,
"control_data_truncated"}, {
xtd::net::sockets::socket_flags::broadcast,
"broadcast"}, {
xtd::net::sockets::socket_flags::multicast,
"multicast"}, {
xtd::net::sockets::socket_flags::partial,
"partial"}};}
#define flags_attribute_(namespace_name, enum_type)
Provides the set attribute struct for enumerations helper.
Definition flags_attribute.hpp:34
socket_flags
Specifies socket send and receive behaviors. This enumeration has a flags attribute that allows a bit...
Definition socket_flags.hpp:30
std::vector< xtd::collections::generic::key_value_pair< enum_t, xtd::string > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition enum_collection.hpp:22
@ 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::net::sockets namespace provides a managed implementation of the Berkeley Sockets interface f...
Definition address_family.hpp:16
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Provides the registration struct for enumerations.
Definition enum_register.hpp:38