Os.Inet_pton(Int32, String) 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.
See inet_pton(3).
[Android.Runtime.Register("inet_pton", "(ILjava/lang/String;)Ljava/net/InetAddress;", "")]
public static Java.Net.InetAddress? Inet_pton(int family, string? address);
[<Android.Runtime.Register("inet_pton", "(ILjava/lang/String;)Ljava/net/InetAddress;", "")>]
static member Inet_pton : int * string -> Java.Net.InetAddress
Parameters
- family
- Int32
The address family: AF_INET for IPv4 or AF_INET6 for IPv6.
- address
- String
The numeric IP address to parse; host names are not resolved.
Returns
The parsed IP address, or null if the text is invalid for the selected family or the family is unsupported.
- Attributes
Remarks
See inet_pton(3).
Java documentation for android.system.Os.inet_pton(int, java.lang.String).
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.