xtd 0.2.0
Loading...
Searching...
No Matches

◆ socket_async_operation

The type of asynchronous socket operation most recently performed with this context object.

socket_async_operation
The type of asynchronous socket operation most recently performed with this context object.
Definition socket_async_operation.h:32
Header
#include <xtd/net/sockets/socket_async_operation>
Namespace
xtd::net::sockets
Library
xtd.core
Remarks
This type describes the asynchronous socket operation that was most recently completed using a xtd::net::sockets::socket_async_event_args object. The value of the xtd::net::sockets::socket_async_event_args::last_operation property is set to xtd::net::sockets::socket_async_operation::none until the xtd::net::sockets::socket_async_event_args instance is used to begin an asynchronous socket operation. The property will then be set to the type of asynchronous operation being performed. This type more easily facilitates using a single completion callback delegate for multiple kinds of asynchronous socket operations. This type is intended for use in the socket_async_callback completion routine.
The xtd::net::sockets::socket_async_operation type is used by the xtd::net::sockets::socket_async_event_args::last_operation property.
Enumerator
none 

none of the socket operations.

accept 

A socket accept operation.

connect 

A socket connect operation.

disconnect 

A socket disconnect operation.

receive 

A socket receive operation.

receive_from 

A socket receive_from operation.

receive_message_from 

A socket receive_message_from operation.

send 

A socket send operation.

send_packets 

A socket send_packets operation.

send_to 

A socket send_to operation.