Język

DatagramSocketImpl.PeekAsync(InetAddress) Method

Definition

Runs Peek(InetAddress) on a thread-pool thread to inspect the next datagram's sender.

protected System.Threading.Tasks.Task<int> PeekAsync(Java.Net.InetAddress? i);
member this.PeekAsync : Java.Net.InetAddress -> System.Threading.Tasks.Task<int>

Parameters

i
InetAddress

The address object passed to Peek(InetAddress) to receive the sender's address.

Returns

A task whose result is the sender's port number returned by Peek(InetAddress).

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