153 size_t bytes_transferred_ = 0;
157 bool disconnect_reuse_socket_ = false;
164 size_t send_packets_send_size_ = 0;
Contains xtd::any type and std::bad_any_cast exception.
Contains xtd::array class.
Represent a polymorphic wrapper capable of holding any type.
Definition any_object.hpp:29
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.hpp:61
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.hpp:18
Represents an event.
Definition event.hpp:21
Defines the base class for predefined exceptions in the xtd namespace.
Definition exception.hpp:30
Identifies a network address. This is an abstract class.
Definition end_point.hpp:27
virtual void on_complete(const socket_async_event_args &e)
Represents a method that is called when an asynchronous operation completes.
socket_async_event_args(bool suppress_execution_context_flow)
Initializes the SocketAsyncEventArgs.
xtd::event< socket_async_event_args, xtd::delegate< void(const socket_async_event_args &)> > completed
The event used to complete an asynchronous operation.
Definition socket_async_event_args.hpp:131
xtd::net::sockets::socket accept_socket() const noexcept
Gets the socket to use or the socket created for accepting a connection with an asynchronous socket m...
const xtd::array< xtd::byte > & buffer() const noexcept
Gets the data buffer to use with an asynchronous socket method.
void set_buffer(const xtd::array< xtd::byte > &memory_buffer)
Sets the region of memory to use as a buffer with an asynchronous socket method.
socket_async_event_args()=default
Creates an empty xtd::net::sockets::socket_async_event_args instance.
Implements the Berkeley sockets interface.
Definition socket.hpp:77
Contains xtd::delegate <result_t(arguments_t...)> delegate.
Contains xtd::event event.
Contains xtd::event_args event args.
#define core_export_
Define shared library export.
Definition core_export.hpp:13
xtd::unique_ptr_object< type_t > uptr
The xtd::uptr object is a unique pointer.
Definition uptr.hpp:25
socket_error
Defines error codes for the xtd::net::sockets::socket class.
Definition socket_error.hpp:30
transmit_file_options
The TransmitFileOptions enumeration defines values used in file transfer requests.
Definition transmit_file_options.hpp:32
socket_async_operation
The type of asynchronous socket operation most recently performed with this context object.
Definition socket_async_operation.hpp:32
socket_flags
Specifies socket send and receive behaviors. This enumeration has a flags attribute that allows a bit...
Definition socket_flags.hpp:30
@ success
Operation successful.
Definition socket_error.hpp:34
@ use_default_worker_thread
Use the default thread to process long file transfer requests.
Definition transmit_file_options.hpp:34
@ none
none of the socket operations.
Definition socket_async_operation.hpp:34
@ e
The E key.
Definition console_key.hpp:96
The xtd::net::sockets namespace provides a managed implementation of the Berkeley Sockets interface f...
Definition address_family.hpp:16
The xtd::net namespace provides a simple programming interface for many of the protocols used on netw...
Definition cookie_exception.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Contains xtd::net::sockets::socket class.
Contains xtd::net::sockets::socket_async_operation enum.
Contains xtd::net::sockets::socket_flags enum.
Contains xtd::net::sockets::transmit_file_options enum.