12#include "../../delegate.h"
13#include "../../event.h"
14#include "../../event_args.h"
90 const std::vector<
xtd::
byte>& buffer() const noexcept;
95 std::vector<
xtd::
byte>& buffer() noexcept;
103 void set_buffer(const std::vector<
xtd::
byte>& memory_buffer);
112 void set_buffer(
size_t offset,
size_t count);
120 void set_buffer(const std::vector<
xtd::
byte>& buffer,
size_t offset,
size_t count);
150 xtd::net::sockets::
socket accept_socket_;
151 std::vector<
xtd::
byte> buffer_;
152 std::vector<std::vector<
xtd::
byte>> buffer_list_;
153 size_t bytes_transferred_ = 0;
155 xtd::net::sockets::
socket connect_socket_;
157 bool disconnect_reuse_socket_ = false;
159 std::vector<
xtd::
byte> memory_buffer_;
165 size_t send_packets_send_size_ = 0;
168 std::any user_token_;
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.h:18
Represents an event.
Definition event.h:21
Defines the base class for predefined exceptions in the xtd namespace.
Definition exception.h:28
Identifies a network address. This is an abstract class.
Definition end_point.h:27
Represents an element in a xtd::net::sockets::send_packets_element array.
Definition send_packets_element.h:41
Represents an asynchronous socket operation.
Definition socket_async_event_args.h:54
socket_async_event_args(bool suppress_execution_context_flow)
Initializes the SocketAsyncEventArgs.
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...
socket_async_event_args()=default
Creates an empty xtd::net::sockets::socket_async_event_args instance.
Implements the Berkeley sockets interface.
Definition socket.h:74
#define core_export_
Define shared library export.
Definition core_export.h:13
std::unique_ptr< type_t > uptr
The xtd::uptr object is a unique pointer.
Definition uptr.h:25
socket_error
Defines error codes for the xtd::net::sockets::socket class.
Definition socket_error.h:30
transmit_file_options
The TransmitFileOptions enumeration defines values used in file transfer requests.
Definition transmit_file_options.h:32
socket_async_operation
The type of asynchronous socket operation most recently performed with this context object.
Definition socket_async_operation.h:32
socket_flags
Specifies socket send and receive behaviors. This enumeration has a flags attribute that allows a bit...
Definition socket_flags.h:30
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Contains xtd::net::sockets::send_packets_element class.
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.