5 #include "../../enum.h" 52 explicit operator auto()
const noexcept {
return xtd::enum_collection<xtd::net::sockets::transmit_file_options> {{
xtd::net::sockets::transmit_file_options::use_default_worker_thread,
"use_default_worker_thread"}, {
xtd::net::sockets::transmit_file_options::disconnect,
"disconnect"}, {
xtd::net::sockets::transmit_file_options::reuse_socket,
"reuse_socket"}, {
xtd::net::sockets::transmit_file_options::write_behind,
"write_behind"}, {
xtd::net::sockets::transmit_file_options::use_system_thread,
"use_system_thread"}, {
xtd::net::sockets::transmit_file_options::use_kernel_apc,
"use_kernel_apc"}};}
Start a transport-level disconnect after all the file data has been queued for transmission. When used with xtd::net::sockets::transmit_file_options::reuse_socket, these flags return the socket to a disconnected, reusable state after the file has been transmitted.
The xtd::net::sockets namespace provides a managed implementation of the Berkeley Sockets interface f...
Definition: address_family.h:16
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Use kernel asynchronous procedure calls (APCs) instead of worker threads to process long file transfe...
transmit_file_options
The TransmitFileOptions enumeration defines values used in file transfer requests.
Definition: transmit_file_options.h:30
std::vector< std::pair< enum_t, xtd::ustring > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition: enum_collection.h:19
Use system threads to process long file transfer requests.
Complete the file transfer request immediately, without pending. If this flag is specified and the fi...
Use the default thread to process long file transfer requests.
#define flags_attribute_(namespace_name, enum_type)
Provides the set attribute struct for enumerations helper.
Definition: flags_attribute.h:34
The socket handle may be reused when the request completes. This flag is valid only if xtd::net::sock...
Provides the registration struct for enumerations.
Definition: enum_register.h:36