SocketAsyncOperation SocketAsyncOperation SocketAsyncOperation SocketAsyncOperation Enum

Definition

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

public enum class SocketAsyncOperation
public enum SocketAsyncOperation
type SocketAsyncOperation = 
Public Enum SocketAsyncOperation
Inheritance
SocketAsyncOperationSocketAsyncOperationSocketAsyncOperationSocketAsyncOperation

Fields

Accept Accept Accept Accept 1

A socket Accept operation.

Connect Connect Connect Connect 2

A socket Connect operation.

Disconnect Disconnect Disconnect Disconnect 3

A socket Disconnect operation.

None None None None 0

None of the socket operations.

Receive Receive Receive Receive 4

A socket Receive operation.

ReceiveFrom ReceiveFrom ReceiveFrom ReceiveFrom 5

A socket ReceiveFrom operation.

ReceiveMessageFrom ReceiveMessageFrom ReceiveMessageFrom ReceiveMessageFrom 6

A socket ReceiveMessageFrom operation.

Send Send Send Send 7

A socket Send operation.

SendPackets SendPackets SendPackets SendPackets 8

A socket SendPackets operation.

SendTo SendTo SendTo SendTo 9

A socket SendTo operation.

Remarks

This type describes the asynchronous socket operation that was most recently completed using a System.Net.Sockets.SocketAsyncEventArgs object. The value of the SocketAsyncEventArgs.LastOperation property is set to None until the System.Net.Sockets.SocketAsyncEventArgs 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 SocketAsyncCallback completion routine.

The SocketAsyncOperation type is used by the SocketAsyncEventArgs.LastOperation property.

Applies to

See also