6#include "../../ustring.h"
53 inline std::ostream& operator<<(std::ostream& os,
transmit_file_options value) {
return os <<
to_string(value, {{
transmit_file_options::use_default_worker_thread,
"use_default_worker_thread"}, {
transmit_file_options::disconnect,
"disconnect"}, {
transmit_file_options::reuse_socket,
"reuse_socket"}, {
transmit_file_options::write_behind,
"write_behind"}, {
transmit_file_options::use_system_thread,
"use_system_thread"}, {
transmit_file_options::use_kernel_apc,
"use_kernel_apc"}});}
54 inline std::wostream& operator<<(std::wostream& os,
transmit_file_options value) {
return os <<
to_string(value, {{
transmit_file_options::use_default_worker_thread, L
"use_default_worker_thread"}, {
transmit_file_options::disconnect, L
"disconnect"}, {
transmit_file_options::reuse_socket, L
"reuse_socket"}, {
transmit_file_options::write_behind, L
"write_behind"}, {
transmit_file_options::use_system_thread, L
"use_system_thread"}, {
transmit_file_options::use_kernel_apc, L
"use_kernel_apc"}});}
transmit_file_options
The TransmitFileOptions enumeration defines values used in file transfer requests.
Definition transmit_file_options.h:26
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
@ reuse_socket
The socket handle may be reused when the request completes. This flag is valid only if xtd::net::sock...
@ write_behind
Complete the file transfer request immediately, without pending. If this flag is specified and the fi...
@ use_system_thread
Use system threads to process long file transfer requests.
@ use_default_worker_thread
Use the default thread to process long file transfer requests.
@ disconnect
Start a transport-level disconnect after all the file data has been queued for transmission....
@ use_kernel_apc
Use kernel asynchronous procedure calls (APCs) instead of worker threads to process long file transfe...
@ disconnect
A socket disconnect operation.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition system_report.h:17