Represents an asynchronous socket operation.
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.hpp:18
socket_async_event_args()=default
Creates an empty xtd::net::sockets::socket_async_event_args instance.
#define core_export_
Define shared library export.
Definition core_export.hpp:13
- Inheritance
- xtd::event_args → xtd::net::sockets::socket_async_event_args
- Header
#include <xtd/net/sockets/socket_async_event_args>
- Namespace
- xtd::net::sockets
- Library
- xtd.core
|
| 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.
|
| |
| void | set_buffer (size_t offset, size_t count) |
| | Sets the data buffer to use with an asynchronous socket method.
|
| |
| void | set_buffer (const xtd::array< xtd::byte > &buffer, size_t offset, size_t count) |
| | Sets the data buffer to use with an asynchronous socket method.
|
| |
|
| static const event_args | empty |
| | Provides a value to use with events that do not have event data.
|
| |
| | event_args ()=default |
| | Initializes a new instance of the event_args class.
|
| |
| | object ()=default |
| | Create a new instance of the ultimate base class object.
|
| |
| virtual bool | equals (const object &obj) const noexcept |
| | Determines whether the specified object is equal to the current object.
|
| |
| virtual xtd::size | get_hash_code () const noexcept |
| | Serves as a hash function for a particular type.
|
| |
| virtual type_object | get_type () const noexcept |
| | Gets the type of the current instance.
|
| |
| template<class object_t> |
| xtd::unique_ptr_object< object_t > | memberwise_clone () const |
| | Creates a shallow copy of the current object.
|
| |
| virtual xtd::string | to_string () const noexcept |
| | Returns a xtd::string that represents the current object.
|
| |
| template<class object_a_t, class object_b_t> |
| static bool | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
| | Determines whether the specified object instances are considered equal.
|
| |
| template<class object_a_t, class object_b_t> |
| static bool | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
| | Determines whether the specified object instances are the same instance.
|
| |
◆ 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 | ) |
|
|
explicit |
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]
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]
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.
◆ set_buffer() [1/3]
| void xtd::net::sockets::socket_async_event_args::set_buffer |
( |
const xtd::array< xtd::byte > & | 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() [2/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
-
◆ set_buffer() [3/3]
| void xtd::net::sockets::socket_async_event_args::set_buffer |
( |
const xtd::array< xtd::byte > & | buffer, |
|
|
size_t | offset, |
|
|
size_t | count ) |
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
-
◆ on_complete()
Represents a method that is called when an asynchronous operation completes.
- Parameters
-
| e | The event that is signaled. |
◆ completed
The event used to complete an asynchronous operation.
The documentation for this class was generated from the following file: