DatagramSocketImpl.Peek(InetAddress) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Peek at the packet to see who it is from.
[Android.Runtime.Register("peek", "(Ljava/net/InetAddress;)I", "GetPeek_Ljava_net_InetAddress_Handler")]
protected abstract int Peek (Java.Net.InetAddress? i);
[<Android.Runtime.Register("peek", "(Ljava/net/InetAddress;)I", "GetPeek_Ljava_net_InetAddress_Handler")>]
abstract member Peek : Java.Net.InetAddress -> int
Parameters
an InetAddress object
Returns
the port number which the packet came from.
- Attributes
Exceptions
if an error or a timeout occurs while reading the address.
Remarks
Peek at the packet to see who it is from. Updates the specified InetAddress
to the address which the packet came from.
Java documentation for java.net.DatagramSocketImpl.peek(java.net.InetAddress)
.
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.