Język

DatagramSocket.SendAsync(DatagramPacket) Method

Definition

Sends a datagram on a thread-pool thread.

public System.Threading.Tasks.Task SendAsync(Java.Net.DatagramPacket? p);
member this.SendAsync : Java.Net.DatagramPacket -> System.Threading.Tasks.Task

Parameters

p
DatagramPacket

The packet containing the data, data length, destination IP address, and destination port.

Returns

A task that completes when Send(DatagramPacket) returns. Completion does not confirm delivery to the destination.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to