System.Net.Sockets.SocketAsyncEventArgs.RemoteEndPoint Property

Gets or sets the remote IP endpoint for an asynchronous operation.

Syntax

public System.Net.EndPoint RemoteEndPoint { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

This property specifies the remote endpoint. This property can specify the remote endpoint to which to connect using the Socket.ConnectAsync(SocketAsyncEventArgs) method. This property can specify the remote endpoint to which to send data using Socket.SendToAsync(SocketAsyncEventArgs) method. This property can specify the remote endpoint from which data was received using the Socket.ReceiveFromAsync(SocketAsyncEventArgs) or Socket.ReceiveMessageFromAsync(SocketAsyncEventArgs) methods.

This remote endpoint specified by this property can include an IPv4 or IPv6 address.

This property is used with the Socket.ConnectAsync(SocketAsyncEventArgs), Socket.ReceiveFromAsync(SocketAsyncEventArgs), Socket.ReceiveMessageFromAsync(SocketAsyncEventArgs), or Socket.SendToAsync(SocketAsyncEventArgs) methods.

Requirements

Namespace: System.Net.Sockets
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0