#include <socket_async_event_args.h>
Represents an asynchronous socket operation.
- Namespace
- xtd::net::sockets
- Library
- xtd.core
Inherits xtd::event_args.
|
static const event_args | empty |
| Provides a value to use with events that do not have event data. More...
|
|
static bool | equals (const object &object_a, const object &object_b) noexcept |
| Determines whether the specified object instances are considered equal. More...
|
|
static bool | reference_equals (const object &object_a, const object &object_b) noexcept |
| Determines whether the specified object instances are the same instance. More...
|
|
◆ socket_async_event_args() [1/2]
xtd::net::sockets::socket_async_event_args::socket_async_event_args |
( |
| ) |
|
|
default |
◆ socket_async_event_args() [2/2]
xtd::net::sockets::socket_async_event_args::socket_async_event_args |
( |
bool |
suppress_execution_context_flow | ) |
|
Initializes the SocketAsyncEventArgs.
- Parameters
-
suppress_execution_context_flow | Whether to disable the capturing and flow of execution context. Execution context flow should only be disabled if it's handled by higher layers. |
◆ accept_socket() [1/2]
Gets the socket to use or the socket created for accepting a connection with an asynchronous socket method.
- Returns
- The xtd::net::sockets::socket to use or the socket created for accepting a connection with an asynchronous socket method.
◆ accept_socket() [2/2]
Sets the socket to use or the socket created for accepting a connection with an asynchronous socket method.
- Parameters
-
value | The xtd::net::sockets::socket to use or the socket created for accepting a connection with an asynchronous socket method. |
- Returns
- This current instance.
◆ buffer() [1/2]
const std::vector<byte_t>& xtd::net::sockets::socket_async_event_args::buffer |
( |
| ) |
const |
|
noexcept |
Gets the data buffer to use with an asynchronous socket method.
- Returns
- A Byte array that represents the data buffer to use with an asynchronous socket method.
◆ buffer() [2/2]
std::vector<byte_t>& xtd::net::sockets::socket_async_event_args::buffer |
( |
| ) |
|
|
noexcept |
Gets the data buffer to use with an asynchronous socket method.
- Returns
- A Byte array that represents the data buffer to use with an asynchronous socket method.
◆ on_complete()
Represents a method that is called when an asynchronous operation completes.
- Parameters
-
e | The event that is signaled. |
◆ set_buffer() [1/3]
void xtd::net::sockets::socket_async_event_args::set_buffer |
( |
const std::vector< byte_t > & |
buffer, |
|
|
size_t |
count, |
|
|
size_t |
offset |
|
) |
| |
Sets the data buffer to use with an asynchronous socket method.
- Parameters
-
buffer | The data buffer to use with an asynchronous socket method. |
offset | The offset, in bytes, in the data buffer where the operation starts. |
count | The maximum amount of data, in bytes, to send or receive in the buffer. |
- Exceptions
-
◆ set_buffer() [2/3]
void xtd::net::sockets::socket_async_event_args::set_buffer |
( |
const std::vector< byte_t > & |
memory_buffer | ) |
|
Sets the region of memory to use as a buffer with an asynchronous socket method.
- Parameters
-
memory_buffer | The region of memory to use as a buffer with an asynchronous socket method. |
◆ set_buffer() [3/3]
void xtd::net::sockets::socket_async_event_args::set_buffer |
( |
size_t |
offset, |
|
|
size_t |
count |
|
) |
| |
Sets the data buffer to use with an asynchronous socket method.
- Parameters
-
offset | The offset, in bytes, in the data buffer where the operation starts. |
count | The maximum amount of data, in bytes, to send or receive in the buffer. |
- Exceptions
-
◆ completed
The event used to complete an asynchronous operation.
The documentation for this class was generated from the following file: