/Generated/v4.0.3/Java.Net.cs
https://gitlab.com/Pfhoenix/api · C# · 1188 lines · 449 code · 94 blank · 645 comment · 0 complexity · a0d680d43ddee9c5579786c22e95c825 MD5 · raw file
- // Copyright (C) 2014 dot42
- //
- // Original filename: Java.Net.cs
- //
- // Licensed under the Apache License, Version 2.0 (the "License");
- // you may not use this file except in compliance with the License.
- // You may obtain a copy of the License at
- //
- // http://www.apache.org/licenses/LICENSE-2.0
- //
- // Unless required by applicable law or agreed to in writing, software
- // distributed under the License is distributed on an "AS IS" BASIS,
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- // See the License for the specific language governing permissions and
- // limitations under the License.
- #pragma warning disable 1717
- namespace Java.Net
- {
- /// <summary>
- /// <para>This exception is thrown when a timeout expired on a socket <c> read </c> or <c> accept </c> operation. </para>
- /// </summary>
- /// <java-name>
- /// java/net/SocketTimeoutException
- /// </java-name>
- [Dot42.DexImport("java/net/SocketTimeoutException", AccessFlags = 33)]
- public partial class SocketTimeoutException : global::Java.Io.InterruptedIOException
- /* scope: __dot42__ */
- {
- /// <summary>
- /// <para>Constructs a new instance. </para>
- /// </summary>
- [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
- public SocketTimeoutException() /* MethodBuilder.Create */
- {
- }
- [Dot42.DexImport("<init>", "(Ljava/lang/String;)V", AccessFlags = 1)]
- public SocketTimeoutException(string @string) /* MethodBuilder.Create */
- {
- }
- }
- /// <summary>
- /// <para>This class is used to represent a network interface of the local device. An interface is defined by its address and a platform dependent name. The class provides methods to get all information about the available interfaces of the system or to identify the local interface of a joined multicast group. </para>
- /// </summary>
- /// <java-name>
- /// java/net/NetworkInterface
- /// </java-name>
- [Dot42.DexImport("java/net/NetworkInterface", AccessFlags = 49)]
- public sealed partial class NetworkInterface
- /* scope: __dot42__ */
- {
- [Dot42.DexImport("<init>", "()V", AccessFlags = 0)]
- internal NetworkInterface() /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <para>Returns the name of this network interface (such as "eth0" or "lo"). </para>
- /// </summary>
- /// <java-name>
- /// getName
- /// </java-name>
- [Dot42.DexImport("getName", "()Ljava/lang/String;", AccessFlags = 1)]
- public string GetName() /* MethodBuilder.Create */
- {
- return default(string);
- }
- /// <summary>
- /// <para>Returns an enumeration of the addresses bound to this network interface. </para>
- /// </summary>
- /// <java-name>
- /// getInetAddresses
- /// </java-name>
- [Dot42.DexImport("getInetAddresses", "()Ljava/util/Enumeration;", AccessFlags = 1, Signature = "()Ljava/util/Enumeration<Ljava/net/InetAddress;>;")]
- public global::Java.Util.IEnumeration<global::Java.Net.InetAddress> GetInetAddresses() /* MethodBuilder.Create */
- {
- return default(global::Java.Util.IEnumeration<global::Java.Net.InetAddress>);
- }
- /// <summary>
- /// <para>Returns a human-readable name for this network interface. On Android, this is the same string as returned by getName. </para>
- /// </summary>
- /// <java-name>
- /// getDisplayName
- /// </java-name>
- [Dot42.DexImport("getDisplayName", "()Ljava/lang/String;", AccessFlags = 1)]
- public string GetDisplayName() /* MethodBuilder.Create */
- {
- return default(string);
- }
- /// <summary>
- /// <para>Returns the <c> NetworkInterface </c> corresponding to the named network interface, or null if no interface has this name.</para><para></para>
- /// </summary>
- /// <java-name>
- /// getByName
- /// </java-name>
- [Dot42.DexImport("getByName", "(Ljava/lang/String;)Ljava/net/NetworkInterface;", AccessFlags = 9)]
- public static global::Java.Net.NetworkInterface GetByName(string interfaceName) /* MethodBuilder.Create */
- {
- return default(global::Java.Net.NetworkInterface);
- }
- /// <summary>
- /// <para>Returns the <c> NetworkInterface </c> corresponding to the given address, or null if no interface has this address.</para><para></para>
- /// </summary>
- /// <java-name>
- /// getByInetAddress
- /// </java-name>
- [Dot42.DexImport("getByInetAddress", "(Ljava/net/InetAddress;)Ljava/net/NetworkInterface;", AccessFlags = 9)]
- public static global::Java.Net.NetworkInterface GetByInetAddress(global::Java.Net.InetAddress address) /* MethodBuilder.Create */
- {
- return default(global::Java.Net.NetworkInterface);
- }
- /// <summary>
- /// <para>Gets a list of all network interfaces available on the local system or <c> null </c> if no interface is available.</para><para></para>
- /// </summary>
- /// <returns>
- /// <para>the list of <c> NetworkInterface </c> instances representing the available interfaces. </para>
- /// </returns>
- /// <java-name>
- /// getNetworkInterfaces
- /// </java-name>
- [Dot42.DexImport("getNetworkInterfaces", "()Ljava/util/Enumeration;", AccessFlags = 9, Signature = "()Ljava/util/Enumeration<Ljava/net/NetworkInterface;>;")]
- public static global::Java.Util.IEnumeration<global::Java.Net.NetworkInterface> GetNetworkInterfaces() /* MethodBuilder.Create */
- {
- return default(global::Java.Util.IEnumeration<global::Java.Net.NetworkInterface>);
- }
- /// <summary>
- /// <para>Compares the specified object to this <c> NetworkInterface </c> and returns whether they are equal or not. The object must be an instance of <c> NetworkInterface </c> with the same name, display name, and list of interface addresses.</para><para><para>hashCode() </para></para>
- /// </summary>
- /// <returns>
- /// <para><c> true </c> if the specified object is equal to this <c> NetworkInterface </c> , <c> false </c> otherwise. </para>
- /// </returns>
- /// <java-name>
- /// equals
- /// </java-name>
- [Dot42.DexImport("equals", "(Ljava/lang/Object;)Z", AccessFlags = 1)]
- public override bool Equals(object obj) /* MethodBuilder.Create */
- {
- return default(bool);
- }
- /// <summary>
- /// <para>Returns the hash code for this <c> NetworkInterface </c> . Since the name should be unique for each network interface the hash code is generated using the name. </para>
- /// </summary>
- /// <java-name>
- /// hashCode
- /// </java-name>
- [Dot42.DexImport("hashCode", "()I", AccessFlags = 1)]
- public override int GetHashCode() /* MethodBuilder.Create */
- {
- return default(int);
- }
- /// <summary>
- /// <para>Returns a string containing details of this network interface. The exact format is deliberately unspecified. Callers that require a specific format should build a string themselves, using this class' accessor methods. </para>
- /// </summary>
- /// <java-name>
- /// toString
- /// </java-name>
- [Dot42.DexImport("toString", "()Ljava/lang/String;", AccessFlags = 1)]
- public override string ToString() /* MethodBuilder.Create */
- {
- return default(string);
- }
- /// <summary>
- /// <para>Returns a List of the InterfaceAddresses for this network interface. <para>1.6 </para></para>
- /// </summary>
- /// <java-name>
- /// getInterfaceAddresses
- /// </java-name>
- [Dot42.DexImport("getInterfaceAddresses", "()Ljava/util/List;", AccessFlags = 1, Signature = "()Ljava/util/List<Ljava/net/InterfaceAddress;>;")]
- public global::Java.Util.IList<global::Java.Net.InterfaceAddress> GetInterfaceAddresses() /* MethodBuilder.Create */
- {
- return default(global::Java.Util.IList<global::Java.Net.InterfaceAddress>);
- }
- /// <summary>
- /// <para>Returns an enumeration of all the sub-interfaces of this network interface. Sub-interfaces are also known as virtual interfaces.</para><para>For example, <c> eth0:1 </c> would be a sub-interface of <c> eth0 </c> .</para><para><para>1.6 </para></para>
- /// </summary>
- /// <returns>
- /// <para>an Enumeration of all the sub-interfaces of this network interface </para>
- /// </returns>
- /// <java-name>
- /// getSubInterfaces
- /// </java-name>
- [Dot42.DexImport("getSubInterfaces", "()Ljava/util/Enumeration;", AccessFlags = 1, Signature = "()Ljava/util/Enumeration<Ljava/net/NetworkInterface;>;")]
- public global::Java.Util.IEnumeration<global::Java.Net.NetworkInterface> GetSubInterfaces() /* MethodBuilder.Create */
- {
- return default(global::Java.Util.IEnumeration<global::Java.Net.NetworkInterface>);
- }
- /// <summary>
- /// <para>Returns the parent NetworkInterface of this interface if this is a sub-interface, or null if it's a physical (non virtual) interface.</para><para><para>1.6 </para></para>
- /// </summary>
- /// <returns>
- /// <para>the NetworkInterface this interface is attached to. </para>
- /// </returns>
- /// <java-name>
- /// getParent
- /// </java-name>
- [Dot42.DexImport("getParent", "()Ljava/net/NetworkInterface;", AccessFlags = 1)]
- public global::Java.Net.NetworkInterface GetParent() /* MethodBuilder.Create */
- {
- return default(global::Java.Net.NetworkInterface);
- }
- /// <summary>
- /// <para>Returns true if this network interface is up.</para><para><para>1.6 </para></para>
- /// </summary>
- /// <returns>
- /// <para>true if the interface is up. </para>
- /// </returns>
- /// <java-name>
- /// isUp
- /// </java-name>
- [Dot42.DexImport("isUp", "()Z", AccessFlags = 1)]
- public bool IsUp() /* MethodBuilder.Create */
- {
- return default(bool);
- }
- /// <summary>
- /// <para>Returns true if this network interface is a loopback interface.</para><para><para>1.6 </para></para>
- /// </summary>
- /// <returns>
- /// <para>true if the interface is a loopback interface. </para>
- /// </returns>
- /// <java-name>
- /// isLoopback
- /// </java-name>
- [Dot42.DexImport("isLoopback", "()Z", AccessFlags = 1)]
- public bool IsLoopback() /* MethodBuilder.Create */
- {
- return default(bool);
- }
- /// <summary>
- /// <para>Returns true if this network interface is a point-to-point interface. (For example, a PPP connection using a modem.)</para><para><para>1.6 </para></para>
- /// </summary>
- /// <returns>
- /// <para>true if the interface is point-to-point. </para>
- /// </returns>
- /// <java-name>
- /// isPointToPoint
- /// </java-name>
- [Dot42.DexImport("isPointToPoint", "()Z", AccessFlags = 1)]
- public bool IsPointToPoint() /* MethodBuilder.Create */
- {
- return default(bool);
- }
- /// <summary>
- /// <para>Returns true if this network interface supports multicast.</para><para><para>1.6 </para></para>
- /// </summary>
- /// <java-name>
- /// supportsMulticast
- /// </java-name>
- [Dot42.DexImport("supportsMulticast", "()Z", AccessFlags = 1)]
- public bool SupportsMulticast() /* MethodBuilder.Create */
- {
- return default(bool);
- }
- /// <summary>
- /// <para>Returns the hardware address of the interface, if it has one, or null otherwise.</para><para><para>1.6 </para></para>
- /// </summary>
- /// <java-name>
- /// getHardwareAddress
- /// </java-name>
- [Dot42.DexImport("getHardwareAddress", "()[B", AccessFlags = 1)]
- public sbyte[] JavaGetHardwareAddress() /* MethodBuilder.Create */
- {
- return default(sbyte[]);
- }
- /// <summary>
- /// <para>Returns the hardware address of the interface, if it has one, or null otherwise.</para><para><para>1.6 </para></para>
- /// </summary>
- /// <java-name>
- /// getHardwareAddress
- /// </java-name>
- [Dot42.DexImport("getHardwareAddress", "()[B", AccessFlags = 1, IgnoreFromJava = true)]
- public byte[] GetHardwareAddress() /* MethodBuilder.Create */
- {
- return default(byte[]);
- }
- /// <summary>
- /// <para>Returns the Maximum Transmission Unit (MTU) of this interface.</para><para><para>1.6 </para></para>
- /// </summary>
- /// <returns>
- /// <para>the value of the MTU for the interface. </para>
- /// </returns>
- /// <java-name>
- /// getMTU
- /// </java-name>
- [Dot42.DexImport("getMTU", "()I", AccessFlags = 1)]
- public int GetMTU() /* MethodBuilder.Create */
- {
- return default(int);
- }
- /// <summary>
- /// <para>Returns true if this interface is a virtual interface (also called a sub-interface). Virtual interfaces are, on some systems, interfaces created as a child of a physical interface and given different settings (like address or MTU). Usually the name of the interface will the name of the parent followed by a colon (:) and a number identifying the child, since there can be several virtual interfaces attached to a single physical interface.</para><para><para>1.6 </para></para>
- /// </summary>
- /// <returns>
- /// <para>true if this interface is a virtual interface. </para>
- /// </returns>
- /// <java-name>
- /// isVirtual
- /// </java-name>
- [Dot42.DexImport("isVirtual", "()Z", AccessFlags = 1)]
- public bool IsVirtual() /* MethodBuilder.Create */
- {
- return default(bool);
- }
- /// <summary>
- /// <para>Returns the name of this network interface (such as "eth0" or "lo"). </para>
- /// </summary>
- /// <java-name>
- /// getName
- /// </java-name>
- public string Name
- {
- [Dot42.DexImport("getName", "()Ljava/lang/String;", AccessFlags = 1)]
- get{ return GetName(); }
- }
- /// <summary>
- /// <para>Returns an enumeration of the addresses bound to this network interface. </para>
- /// </summary>
- /// <java-name>
- /// getInetAddresses
- /// </java-name>
- public global::Java.Util.IEnumeration<global::Java.Net.InetAddress> InetAddresses
- {
- [Dot42.DexImport("getInetAddresses", "()Ljava/util/Enumeration;", AccessFlags = 1, Signature = "()Ljava/util/Enumeration<Ljava/net/InetAddress;>;")]
- get{ return GetInetAddresses(); }
- }
- /// <summary>
- /// <para>Returns a human-readable name for this network interface. On Android, this is the same string as returned by getName. </para>
- /// </summary>
- /// <java-name>
- /// getDisplayName
- /// </java-name>
- public string DisplayName
- {
- [Dot42.DexImport("getDisplayName", "()Ljava/lang/String;", AccessFlags = 1)]
- get{ return GetDisplayName(); }
- }
- /// <summary>
- /// <para>Gets a list of all network interfaces available on the local system or <c> null </c> if no interface is available.</para><para></para>
- /// </summary>
- /// <returns>
- /// <para>the list of <c> NetworkInterface </c> instances representing the available interfaces. </para>
- /// </returns>
- /// <java-name>
- /// getNetworkInterfaces
- /// </java-name>
- public static global::Java.Util.IEnumeration<global::Java.Net.NetworkInterface> NetworkInterfaces
- {
- [Dot42.DexImport("getNetworkInterfaces", "()Ljava/util/Enumeration;", AccessFlags = 9, Signature = "()Ljava/util/Enumeration<Ljava/net/NetworkInterface;>;")]
- get{ return GetNetworkInterfaces(); }
- }
- /// <summary>
- /// <para>Returns a List of the InterfaceAddresses for this network interface. <para>1.6 </para></para>
- /// </summary>
- /// <java-name>
- /// getInterfaceAddresses
- /// </java-name>
- public global::Java.Util.IList<global::Java.Net.InterfaceAddress> InterfaceAddresses
- {
- [Dot42.DexImport("getInterfaceAddresses", "()Ljava/util/List;", AccessFlags = 1, Signature = "()Ljava/util/List<Ljava/net/InterfaceAddress;>;")]
- get{ return GetInterfaceAddresses(); }
- }
- /// <summary>
- /// <para>Returns an enumeration of all the sub-interfaces of this network interface. Sub-interfaces are also known as virtual interfaces.</para><para>For example, <c> eth0:1 </c> would be a sub-interface of <c> eth0 </c> .</para><para><para>1.6 </para></para>
- /// </summary>
- /// <returns>
- /// <para>an Enumeration of all the sub-interfaces of this network interface </para>
- /// </returns>
- /// <java-name>
- /// getSubInterfaces
- /// </java-name>
- public global::Java.Util.IEnumeration<global::Java.Net.NetworkInterface> SubInterfaces
- {
- [Dot42.DexImport("getSubInterfaces", "()Ljava/util/Enumeration;", AccessFlags = 1, Signature = "()Ljava/util/Enumeration<Ljava/net/NetworkInterface;>;")]
- get{ return GetSubInterfaces(); }
- }
- /// <summary>
- /// <para>Returns the parent NetworkInterface of this interface if this is a sub-interface, or null if it's a physical (non virtual) interface.</para><para><para>1.6 </para></para>
- /// </summary>
- /// <returns>
- /// <para>the NetworkInterface this interface is attached to. </para>
- /// </returns>
- /// <java-name>
- /// getParent
- /// </java-name>
- public global::Java.Net.NetworkInterface Parent
- {
- [Dot42.DexImport("getParent", "()Ljava/net/NetworkInterface;", AccessFlags = 1)]
- get{ return GetParent(); }
- }
- /// <summary>
- /// <para>Returns the hardware address of the interface, if it has one, or null otherwise.</para><para><para>1.6 </para></para>
- /// </summary>
- /// <java-name>
- /// getHardwareAddress
- /// </java-name>
- public byte[] HardwareAddress
- {
- [Dot42.DexImport("getHardwareAddress", "()[B", AccessFlags = 1, IgnoreFromJava = true)]
- get{ return GetHardwareAddress(); }
- }
- /// <summary>
- /// <para>Returns the Maximum Transmission Unit (MTU) of this interface.</para><para><para>1.6 </para></para>
- /// </summary>
- /// <returns>
- /// <para>the value of the MTU for the interface. </para>
- /// </returns>
- /// <java-name>
- /// getMTU
- /// </java-name>
- public int MTU
- {
- [Dot42.DexImport("getMTU", "()I", AccessFlags = 1)]
- get{ return GetMTU(); }
- }
- }
- /// <summary>
- /// <para>This class provides a concrete implementation of CookieHandler. It separates the storage of cookies from the policy which decides to accept or deny cookies. The constructor can have two arguments: a CookieStore and a CookiePolicy. The former is in charge of cookie storage and the latter makes decision on acceptance/rejection.</para><para>CookieHandler is in the center of cookie management. User can make use of CookieHandler.setDefault to set a CookieManager as the default one used.</para><para>CookieManager.put uses CookiePolicy.shouldAccept to decide whether to put some cookies into a cookie store. Three built-in CookiePolicy is defined: ACCEPT_ALL, ACCEPT_NONE and ACCEPT_ORIGINAL_SERVER. Users can also customize the policy by implementing CookiePolicy. Any accepted HTTP cookie is stored in CookieStore and users can also have their own implementation. Up to now, Only add(URI, HttpCookie) and get(URI) are used by CookieManager. Other methods in this class may probably be used in a more complicated implementation.</para><para>There are many ways to customize user's own HTTP cookie management:</para><para>First, call CookieHandler.setDefault to set a new CookieHandler implementation. Second, call CookieHandler.getDefault to use CookieManager. The CookiePolicy and CookieStore used are customized. Third, use the customized CookiePolicy and the CookieStore.</para><para>This implementation conforms to section 3.3.</para><para><para>1.6 </para></para>
- /// </summary>
- /// <java-name>
- /// java/net/CookieManager
- /// </java-name>
- [Dot42.DexImport("java/net/CookieManager", AccessFlags = 33)]
- public partial class CookieManager : global::Java.Net.CookieHandler
- /* scope: __dot42__ */
- {
- /// <summary>
- /// <para>Constructs a new cookie manager.</para><para>The invocation of this constructor is the same as the invocation of CookieManager(null, null). </para>
- /// </summary>
- [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
- public CookieManager() /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <para>Constructs a new cookie manager using a specified cookie store and a cookie policy.</para><para></para>
- /// </summary>
- [Dot42.DexImport("<init>", "(Ljava/net/CookieStore;Ljava/net/CookiePolicy;)V", AccessFlags = 1)]
- public CookieManager(global::Java.Net.ICookieStore store, global::Java.Net.ICookiePolicy cookiePolicy) /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <para>Searches and gets all cookies in the cache by the specified uri in the request header.</para><para></para>
- /// </summary>
- /// <returns>
- /// <para>a map that record all such cookies, the map is unchangeable </para>
- /// </returns>
- /// <java-name>
- /// get
- /// </java-name>
- [Dot42.DexImport("get", "(Ljava/net/URI;Ljava/util/Map;)Ljava/util/Map;", AccessFlags = 1, Signature = "(Ljava/net/URI;Ljava/util/Map<Ljava/lang/String;Ljava/util/List<Ljava/lang/String" +
- ";>;>;)Ljava/util/Map<Ljava/lang/String;Ljava/util/List<Ljava/lang/String;>;>;")]
- public override global::Java.Util.IMap<string, global::Java.Util.IList<string>> Get(global::System.Uri uri, global::Java.Util.IMap<string, global::Java.Util.IList<string>> requestHeaders) /* MethodBuilder.Create */
- {
- return default(global::Java.Util.IMap<string, global::Java.Util.IList<string>>);
- }
- /// <summary>
- /// <para>Sets cookies according to uri and responseHeaders</para><para></para>
- /// </summary>
- /// <java-name>
- /// put
- /// </java-name>
- [Dot42.DexImport("put", "(Ljava/net/URI;Ljava/util/Map;)V", AccessFlags = 1, Signature = "(Ljava/net/URI;Ljava/util/Map<Ljava/lang/String;Ljava/util/List<Ljava/lang/String" +
- ";>;>;)V")]
- public override void Put(global::System.Uri uri, global::Java.Util.IMap<string, global::Java.Util.IList<string>> responseHeaders) /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <para>Sets the cookie policy of this cookie manager.</para><para>ACCEPT_ORIGINAL_SERVER is the default policy for CookieManager.</para><para></para>
- /// </summary>
- /// <java-name>
- /// setCookiePolicy
- /// </java-name>
- [Dot42.DexImport("setCookiePolicy", "(Ljava/net/CookiePolicy;)V", AccessFlags = 1)]
- public virtual void SetCookiePolicy(global::Java.Net.ICookiePolicy cookiePolicy) /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <para>Gets current cookie store.</para><para></para>
- /// </summary>
- /// <returns>
- /// <para>the cookie store currently used by cookie manager. </para>
- /// </returns>
- /// <java-name>
- /// getCookieStore
- /// </java-name>
- [Dot42.DexImport("getCookieStore", "()Ljava/net/CookieStore;", AccessFlags = 1)]
- public virtual global::Java.Net.ICookieStore GetCookieStore() /* MethodBuilder.Create */
- {
- return default(global::Java.Net.ICookieStore);
- }
- /// <summary>
- /// <para>Gets current cookie store.</para><para></para>
- /// </summary>
- /// <returns>
- /// <para>the cookie store currently used by cookie manager. </para>
- /// </returns>
- /// <java-name>
- /// getCookieStore
- /// </java-name>
- public global::Java.Net.ICookieStore CookieStore
- {
- [Dot42.DexImport("getCookieStore", "()Ljava/net/CookieStore;", AccessFlags = 1)]
- get{ return GetCookieStore(); }
- }
- }
- /// <summary>
- /// <para>This class represents a server-side socket that waits for incoming client connections. A <c> ServerSocket </c> handles the requests and sends back an appropriate reply. The actual tasks that a server socket must accomplish are implemented by an internal <c> SocketImpl </c> instance. </para>
- /// </summary>
- /// <java-name>
- /// java/net/ServerSocket
- /// </java-name>
- [Dot42.DexImport("java/net/ServerSocket", AccessFlags = 33)]
- public partial class ServerSocket
- /* scope: __dot42__ */
- {
- /// <summary>
- /// <para>Constructs a new unbound <c> ServerSocket </c> .</para><para></para>
- /// </summary>
- [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
- public ServerSocket() /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <para>Constructs a new <c> ServerSocket </c> instance bound to the given <c> port </c> . The backlog is set to 50. If <c> port == 0 </c> , a port will be assigned by the OS.</para><para></para>
- /// </summary>
- [Dot42.DexImport("<init>", "(I)V", AccessFlags = 1)]
- public ServerSocket(int port) /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <para>Constructs a new <c> ServerSocket </c> instance bound to the given <c> port </c> . The backlog is set to <c> backlog </c> . If <c> port == 0 </c> , a port will be assigned by the OS.</para><para></para>
- /// </summary>
- [Dot42.DexImport("<init>", "(II)V", AccessFlags = 1)]
- public ServerSocket(int port, int backlog) /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <para>Constructs a new <c> ServerSocket </c> instance bound to the given <c> localAddress </c> and <c> port </c> . The backlog is set to <c> backlog </c> . If <c> localAddress == null </c> , the ANY address is used. If <c> port == 0 </c> , a port will be assigned by the OS.</para><para></para>
- /// </summary>
- [Dot42.DexImport("<init>", "(IILjava/net/InetAddress;)V", AccessFlags = 1)]
- public ServerSocket(int port, int backlog, global::Java.Net.InetAddress localAddress) /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <para>Waits for an incoming request and blocks until the connection is opened. This method returns a socket object representing the just opened connection.</para><para></para>
- /// </summary>
- /// <returns>
- /// <para>the connection representing socket. </para>
- /// </returns>
- /// <java-name>
- /// accept
- /// </java-name>
- [Dot42.DexImport("accept", "()Ljava/net/Socket;", AccessFlags = 1)]
- public virtual global::Java.Net.Socket Accept() /* MethodBuilder.Create */
- {
- return default(global::Java.Net.Socket);
- }
- /// <summary>
- /// <para>Closes this server socket and its implementation. Any attempt to connect to this socket thereafter will fail.</para><para></para>
- /// </summary>
- /// <java-name>
- /// close
- /// </java-name>
- [Dot42.DexImport("close", "()V", AccessFlags = 1)]
- public virtual void Close() /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <para>Gets the local IP address of this server socket or <c> null </c> if the socket is unbound. This is useful for multihomed hosts.</para><para></para>
- /// </summary>
- /// <returns>
- /// <para>the local address of this server socket. </para>
- /// </returns>
- /// <java-name>
- /// getInetAddress
- /// </java-name>
- [Dot42.DexImport("getInetAddress", "()Ljava/net/InetAddress;", AccessFlags = 1)]
- public virtual global::Java.Net.InetAddress GetInetAddress() /* MethodBuilder.Create */
- {
- return default(global::Java.Net.InetAddress);
- }
- /// <summary>
- /// <para>Gets the local port of this server socket or <c> -1 </c> if the socket is unbound.</para><para></para>
- /// </summary>
- /// <returns>
- /// <para>the local port this server is listening on. </para>
- /// </returns>
- /// <java-name>
- /// getLocalPort
- /// </java-name>
- [Dot42.DexImport("getLocalPort", "()I", AccessFlags = 1)]
- public virtual int GetLocalPort() /* MethodBuilder.Create */
- {
- return default(int);
- }
- /// <summary>
- /// <para>Gets the socket accept timeout.</para><para></para>
- /// </summary>
- /// <java-name>
- /// getSoTimeout
- /// </java-name>
- [Dot42.DexImport("getSoTimeout", "()I", AccessFlags = 33)]
- public virtual int GetSoTimeout() /* MethodBuilder.Create */
- {
- return default(int);
- }
- /// <summary>
- /// <para>Invokes the server socket implementation to accept a connection on the given socket <c> aSocket </c> .</para><para></para>
- /// </summary>
- /// <java-name>
- /// implAccept
- /// </java-name>
- [Dot42.DexImport("implAccept", "(Ljava/net/Socket;)V", AccessFlags = 20)]
- protected internal void ImplAccept(global::Java.Net.Socket aSocket) /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <para>Sets the server socket implementation factory of this instance. This method may only be invoked with sufficient security privilege and only once during the application lifetime.</para><para></para>
- /// </summary>
- /// <java-name>
- /// setSocketFactory
- /// </java-name>
- [Dot42.DexImport("setSocketFactory", "(Ljava/net/SocketImplFactory;)V", AccessFlags = 41)]
- public static void SetSocketFactory(global::Java.Net.ISocketImplFactory aFactory) /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <para>Sets the accept timeout in milliseconds for this socket. This accept timeout defines the period the socket will block waiting to accept a connection before throwing an <c> InterruptedIOException </c> . The value <c> 0 </c> (default) is used to set an infinite timeout. To have effect this option must be set before the blocking method was called.</para><para></para>
- /// </summary>
- /// <java-name>
- /// setSoTimeout
- /// </java-name>
- [Dot42.DexImport("setSoTimeout", "(I)V", AccessFlags = 33)]
- public virtual void SetSoTimeout(int timeout) /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <para>Returns a textual representation of this server socket including the address, port and the state. The port field is set to <c> 0 </c> if there is no connection to the server socket.</para><para></para>
- /// </summary>
- /// <returns>
- /// <para>the textual socket representation. </para>
- /// </returns>
- /// <java-name>
- /// toString
- /// </java-name>
- [Dot42.DexImport("toString", "()Ljava/lang/String;", AccessFlags = 1)]
- public override string ToString() /* MethodBuilder.Create */
- {
- return default(string);
- }
- /// <summary>
- /// <para>Binds this server socket to the given local socket address with a maximum backlog of 50 unaccepted connections. If the <c> localAddr </c> is set to <c> null </c> the socket will be bound to an available local address on any free port of the system.</para><para></para>
- /// </summary>
- /// <java-name>
- /// bind
- /// </java-name>
- [Dot42.DexImport("bind", "(Ljava/net/SocketAddress;)V", AccessFlags = 1)]
- public virtual void Bind(global::Java.Net.SocketAddress localAddr) /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <para>Binds this server socket to the given local socket address. If the <c> localAddr </c> is set to <c> null </c> the socket will be bound to an available local address on any free port of the system.</para><para></para>
- /// </summary>
- /// <java-name>
- /// bind
- /// </java-name>
- [Dot42.DexImport("bind", "(Ljava/net/SocketAddress;I)V", AccessFlags = 1)]
- public virtual void Bind(global::Java.Net.SocketAddress localAddr, int backlog) /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <para>Gets the local socket address of this server socket or <c> null </c> if the socket is unbound. This is useful on multihomed hosts.</para><para></para>
- /// </summary>
- /// <returns>
- /// <para>the local socket address and port this socket is bound to. </para>
- /// </returns>
- /// <java-name>
- /// getLocalSocketAddress
- /// </java-name>
- [Dot42.DexImport("getLocalSocketAddress", "()Ljava/net/SocketAddress;", AccessFlags = 1)]
- public virtual global::Java.Net.SocketAddress GetLocalSocketAddress() /* MethodBuilder.Create */
- {
- return default(global::Java.Net.SocketAddress);
- }
- /// <summary>
- /// <para>Returns whether this server socket is bound to a local address and port or not.</para><para></para>
- /// </summary>
- /// <returns>
- /// <para><c> true </c> if this socket is bound, <c> false </c> otherwise. </para>
- /// </returns>
- /// <java-name>
- /// isBound
- /// </java-name>
- [Dot42.DexImport("isBound", "()Z", AccessFlags = 1)]
- public virtual bool IsBound() /* MethodBuilder.Create */
- {
- return default(bool);
- }
- /// <summary>
- /// <para>Returns whether this server socket is closed or not.</para><para></para>
- /// </summary>
- /// <returns>
- /// <para><c> true </c> if this socket is closed, <c> false </c> otherwise. </para>
- /// </returns>
- /// <java-name>
- /// isClosed
- /// </java-name>
- [Dot42.DexImport("isClosed", "()Z", AccessFlags = 1)]
- public virtual bool IsClosed() /* MethodBuilder.Create */
- {
- return default(bool);
- }
- /// <summary>
- /// <para>Sets the value for the socket option <c> SocketOptions.SO_REUSEADDR </c> .</para><para></para>
- /// </summary>
- /// <java-name>
- /// setReuseAddress
- /// </java-name>
- [Dot42.DexImport("setReuseAddress", "(Z)V", AccessFlags = 1)]
- public virtual void SetReuseAddress(bool reuse) /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <para>Gets the value of the socket option <c> SocketOptions.SO_REUSEADDR </c> .</para><para></para>
- /// </summary>
- /// <returns>
- /// <para><c> true </c> if the option is enabled, <c> false </c> otherwise. </para>
- /// </returns>
- /// <java-name>
- /// getReuseAddress
- /// </java-name>
- [Dot42.DexImport("getReuseAddress", "()Z", AccessFlags = 1)]
- public virtual bool GetReuseAddress() /* MethodBuilder.Create */
- {
- return default(bool);
- }
- /// <summary>
- /// <para>Sets this socket's receive buffer size. </para>
- /// </summary>
- /// <java-name>
- /// setReceiveBufferSize
- /// </java-name>
- [Dot42.DexImport("setReceiveBufferSize", "(I)V", AccessFlags = 1)]
- public virtual void SetReceiveBufferSize(int size) /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <para>Returns this socket's receive buffer size. </para>
- /// </summary>
- /// <java-name>
- /// getReceiveBufferSize
- /// </java-name>
- [Dot42.DexImport("getReceiveBufferSize", "()I", AccessFlags = 1)]
- public virtual int GetReceiveBufferSize() /* MethodBuilder.Create */
- {
- return default(int);
- }
- /// <summary>
- /// <para>Returns this socket's <c> ServerSocketChannel </c> , if one exists. A channel is available only if this socket wraps a channel. (That is, you can go from a channel to a socket and back again, but you can't go from an arbitrary socket to a channel.) In practice, this means that the socket must have been created by java.nio.channels.ServerSocketChannel#open. </para>
- /// </summary>
- /// <java-name>
- /// getChannel
- /// </java-name>
- [Dot42.DexImport("getChannel", "()Ljava/nio/channels/ServerSocketChannel;", AccessFlags = 1)]
- public virtual global::Java.Nio.Channels.ServerSocketChannel GetChannel() /* MethodBuilder.Create */
- {
- return default(global::Java.Nio.Channels.ServerSocketChannel);
- }
- /// <summary>
- /// <para>Sets performance preferences for connection time, latency and bandwidth. </para><para>This method does currently nothing.</para><para></para>
- /// </summary>
- /// <java-name>
- /// setPerformancePreferences
- /// </java-name>
- [Dot42.DexImport("setPerformancePreferences", "(III)V", AccessFlags = 1)]
- public virtual void SetPerformancePreferences(int connectionTime, int latency, int bandwidth) /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <para>Gets the local IP address of this server socket or <c> null </c> if the socket is unbound. This is useful for multihomed hosts.</para><para></para>
- /// </summary>
- /// <returns>
- /// <para>the local address of this server socket. </para>
- /// </returns>
- /// <java-name>
- /// getInetAddress
- /// </java-name>
- public global::Java.Net.InetAddress InetAddress
- {
- [Dot42.DexImport("getInetAddress", "()Ljava/net/InetAddress;", AccessFlags = 1)]
- get{ return GetInetAddress(); }
- }
- /// <summary>
- /// <para>Gets the local port of this server socket or <c> -1 </c> if the socket is unbound.</para><para></para>
- /// </summary>
- /// <returns>
- /// <para>the local port this server is listening on. </para>
- /// </returns>
- /// <java-name>
- /// getLocalPort
- /// </java-name>
- public int LocalPort
- {
- [Dot42.DexImport("getLocalPort", "()I", AccessFlags = 1)]
- get{ return GetLocalPort(); }
- }
- /// <summary>
- /// <para>Gets the socket accept timeout.</para><para></para>
- /// </summary>
- /// <java-name>
- /// getSoTimeout
- /// </java-name>
- public int SoTimeout
- {
- [Dot42.DexImport("getSoTimeout", "()I", AccessFlags = 33)]
- get{ return GetSoTimeout(); }
- [Dot42.DexImport("setSoTimeout", "(I)V", AccessFlags = 33)]
- set{ SetSoTimeout(value); }
- }
- /// <summary>
- /// <para>Gets the local socket address of this server socket or <c> null </c> if the socket is unbound. This is useful on multihomed hosts.</para><para></para>
- /// </summary>
- /// <returns>
- /// <para>the local socket address and port this socket is bound to. </para>
- /// </returns>
- /// <java-name>
- /// getLocalSocketAddress
- /// </java-name>
- public global::Java.Net.SocketAddress LocalSocketAddress
- {
- [Dot42.DexImport("getLocalSocketAddress", "()Ljava/net/SocketAddress;", AccessFlags = 1)]
- get{ return GetLocalSocketAddress(); }
- }
- /// <summary>
- /// <para>Gets the value of the socket option <c> SocketOptions.SO_REUSEADDR </c> .</para><para></para>
- /// </summary>
- /// <returns>
- /// <para><c> true </c> if the option is enabled, <c> false </c> otherwise. </para>
- /// </returns>
- /// <java-name>
- /// getReuseAddress
- /// </java-name>
- public bool IsReuseAddress
- {
- [Dot42.DexImport("getReuseAddress", "()Z", AccessFlags = 1)]
- get{ return GetReuseAddress(); }
- [Dot42.DexImport("setReuseAddress", "(Z)V", AccessFlags = 1)]
- set{ SetReuseAddress(value); }
- }
- /// <summary>
- /// <para>Returns this socket's receive buffer size. </para>
- /// </summary>
- /// <java-name>
- /// getReceiveBufferSize
- /// </java-name>
- public int ReceiveBufferSize
- {
- [Dot42.DexImport("getReceiveBufferSize", "()I", AccessFlags = 1)]
- get{ return GetReceiveBufferSize(); }
- [Dot42.DexImport("setReceiveBufferSize", "(I)V", AccessFlags = 1)]
- set{ SetReceiveBufferSize(value); }
- }
- /// <summary>
- /// <para>Returns this socket's <c> ServerSocketChannel </c> , if one exists. A channel is available only if this socket wraps a channel. (That is, you can go from a channel to a socket and back again, but you can't go from an arbitrary socket to a channel.) In practice, this means that the socket must have been created by java.nio.channels.ServerSocketChannel#open. </para>
- /// </summary>
- /// <java-name>
- /// getChannel
- /// </java-name>
- public global::Java.Nio.Channels.ServerSocketChannel Channel
- {
- [Dot42.DexImport("getChannel", "()Ljava/nio/channels/ServerSocketChannel;", AccessFlags = 1)]
- get{ return GetChannel(); }
- }
- }
- /// <summary>
- /// <para>This class represents proxy server settings. A created instance of <c> Proxy </c> stores a type and an address and is immutable. There are three types of proxies: <ul><li><para>DIRECT </para></li><li><para>HTTP </para></li><li><para>SOCKS</ul </para></li></ul></para>
- /// </summary>
- /// <java-name>
- /// java/net/Proxy
- /// </java-name>
- [Dot42.DexImport("java/net/Proxy", AccessFlags = 33)]
- public partial class Proxy
- /* scope: __dot42__ */
- {
- /// <summary>
- /// <para>Represents the proxy type setting <c> Proxy.Type.DIRECT </c> . It tells protocol handlers that there is no proxy to be used. The address is set to <c> null </c> . </para>
- /// </summary>
- /// <java-name>
- /// NO_PROXY
- /// </java-name>
- [Dot42.DexImport("NO_PROXY", "Ljava/net/Proxy;", AccessFlags = 25)]
- public static readonly global::Java.Net.Proxy NO_PROXY;
- /// <summary>
- /// <para>Creates a new <c> Proxy </c> instance. <c> SocketAddress </c> must NOT be <c> null </c> when <c> type </c> is either <c> Proxy.Type.HTTP </c> or <c> Proxy.Type.SOCKS </c> . To create a <c> Proxy </c> instance representing the proxy type <c> Proxy.Type.DIRECT </c> , use <c> Proxy.NO_PROXY </c> instead of this constructor.</para><para></para>
- /// </summary>
- [Dot42.DexImport("<init>", "(Ljava/net/Proxy$Type;Ljava/net/SocketAddress;)V", AccessFlags = 1)]
- public Proxy(global::Java.Net.Proxy.JavaType type, global::Java.Net.SocketAddress sa) /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <para>Gets the type of this <c> Proxy </c> instance.</para><para></para>
- /// </summary>
- /// <returns>
- /// <para>the stored proxy type. </para>
- /// </returns>
- /// <java-name>
- /// type
- /// </java-name>
- [Dot42.DexImport("type", "()Ljava/net/Proxy$Type;", AccessFlags = 1)]
- public virtual global::Java.Net.Proxy.JavaType Type() /* MethodBuilder.Create */
- {
- return default(global::Java.Net.Proxy.JavaType);
- }
- /// <summary>
- /// <para>Gets the address of this <c> Proxy </c> instance.</para><para></para>
- /// </summary>
- /// <returns>
- /// <para>the stored proxy address or <c> null </c> if the proxy type is <c> DIRECT </c> . </para>
- /// </returns>
- /// <java-name>
- /// address
- /// </java-name>
- [Dot42.DexImport("address", "()Ljava/net/SocketAddress;", AccessFlags = 1)]
- public virtual global::Java.Net.SocketAddress Address() /* MethodBuilder.Create */
- {
- return default(global::Java.Net.SocketAddress);
- }
- /// <summary>
- /// <para>Gets a textual representation of this <c> Proxy </c> instance. The string includes the two parts <c> type.toString() </c> and <c> address.toString() </c> if <c> address </c> is not <c> null </c> .</para><para></para>
- /// </summary>
- /// <returns>
- /// <para>the representing string of this proxy. </para>
- /// </returns>
- /// <java-name>
- /// toString
- /// </java-name>
- [Dot42.DexImport("toString", "()Ljava/lang/String;", AccessFlags = 1)]
- public override string ToString() /* MethodBuilder.Create */
- {
- return default(string);
- }
- /// <summary>
- /// <para>Compares the specified <c> obj </c> to this <c> Proxy </c> instance and returns whether they are equal or not. The given object must be an instance of <c> Proxy </c> with the same address and the same type value to be equal.</para><para><para>hashCode </para></para>
- /// </summary>
- /// <returns>
- /// <para><c> true </c> if the given object represents the same <c> Proxy </c> as this instance, <c> false </c> otherwise. </para>
- /// </returns>
- /// <java-name>
- /// equals
- /// </java-name>
- [Dot42.DexImport("equals", "(Ljava/lang/Object;)Z", AccessFlags = 17)]
- public override bool Equals(object obj) /* MethodBuilder.Create */
- {
- return default(bool);
- }
- /// <summary>
- /// <para>Gets the hashcode for this <c> Proxy </c> instance.</para><para></para>
- /// </summary>
- /// <returns>
- /// <para>the hashcode value for this Proxy instance. </para>
- /// </returns>
- /// <java-name>
- /// hashCode
- /// </java-name>
- [Dot42.DexImport("hashCode", "()I", AccessFlags = 17)]
- public override int GetHashCode() /* MethodBuilder.Create */
- {
- return default(int);
- }
- [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
- internal Proxy() /* TypeBuilder.AddDefaultConstructor */
- {
- }
- /// <java-name>
- /// java/net/Proxy$Type
- /// </java-name>
- [Dot42.DexImport("java/net/Proxy$Type", AccessFlags = 16409, Signature = "Ljava/lang/Enum<Ljava/net/Proxy$Type;>;")]
- public sealed class JavaType
- /* scope: __dot42__ */
- {
- /// <java-name>
- /// DIRECT
- /// </java-name>
- [Dot42.DexImport("DIRECT", "Ljava/net/Proxy$Type;", AccessFlags = 16409)]
- public static readonly JavaType DIRECT;
- /// <java-name>
- /// HTTP
- /// </java-name>
- [Dot42.DexImport("HTTP", "Ljava/net/Proxy$Type;", AccessFlags = 16409)]
- public static readonly JavaType HTTP;
- /// <java-name>
- /// SOCKS
- /// </java-name>
- [Dot42.DexImport("SOCKS", "Ljava/net/Proxy$Type;", AccessFlags = 16409)]
- public static readonly JavaType SOCKS;
- private JavaType() /* TypeBuilder.AddPrivateDefaultCtor */
- {
- }
- }
- }
- /// <summary>
- /// <para>This class converts the content of a certain format (i.e. a MIME type) into a Java type object. It is created by <c> ContentHandlerFactory </c> . The data values should be accessed via <c> URL </c> or <c> URLConnection </c> .</para><para><para>ContentHandlerFactory </para><simplesectsep></simplesectsep><para>URL::getContent() </para><simplesectsep></simplesectsep><para>URLConnection::getContent() </para></para>
- /// </summary>
- /// <java-name>
- /// java/net/ContentHandler
- /// </java-name>
- [Dot42.DexImport("java/net/ContentHandler", AccessFlags = 1057)]
- public abstract partial class ContentHandler
- /* scope: __dot42__ */
- {
- [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
- public ContentHandler() /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <para>Returns the object pointed by the specified URL connection <c> uConn </c> .</para><para></para>
- /// </summary>
- /// <returns>
- /// <para>object referred by <c> uConn </c> . </para>
- /// </returns>
- /// <java-name>
- /// getContent
- /// </java-name>
- [Dot42.DexImport("getContent", "(Ljava/net/URLConnection;)Ljava/lang/Object;", AccessFlags = 1025)]
- public abstract object GetContent(global::Java.Net.URLConnection uConn) /* MethodBuilder.Create */ ;
- /// <summary>
- /// <para>Returns the object pointed by the specified URL connection <c> uConn </c> .</para><para></para>
- /// </summary>
- /// <returns>
- /// <para>resource object pointed by this URL or <c> null </c> if the content doesn't match one of the specified content types. </para>
- /// </returns>
- /// <java-name>
- /// getContent
- /// </java-name>
- [Dot42.DexImport("getContent", "(Ljava/net/URLConnection;[Ljava/lang/Class;)Ljava/lang/Object;", AccessFlags = 1)]
- public virtual object GetContent(global::Java.Net.URLConnection uConn, global::System.Type[] types) /* MethodBuilder.Create */
- {
- return default(object);
- }
- }
- /// <summary>
- /// <para>Is thrown if no appropriate <c> ContentHandler </c> could be found for a particular service requested by the URL connection. This could be happened if there is an invalid MIME type or the application wants to send data over a read-only connection. </para>
- /// </summary>
- /// <java-name>
- /// java/net/UnknownServiceException
- /// </java-name>
- [Dot42.DexImport("java/net/UnknownServiceException", AccessFlags = 33)]
- public partial class UnknownServiceException : global::System.IO.IOException
- /* scope: __dot42__ */
- {
- /// <summary>
- /// <para>Constructs a new instance. </para>
- /// </summary>
- [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
- public UnknownServiceException() /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <para>Constructs a new instance with the given detail message. </para>
- /// </summary>
- [Dot42.DexImport("<init>", "(Ljava/lang/String;)V", AccessFlags = 1)]
- public UnknownServiceException(string detailMessage) /* MethodBuilder.Create */
- {
- }
- }
- /// <summary>
- /// <para>A <c> BindException </c> is thrown when a process cannot bind a local address/port, either because it is already bound or reserved by the OS.</para><para>Most applications <b>should not</b> catch this exception; it is more robust to catch the superclass <c> SocketException </c> . </para>
- /// </summary>
- /// <java-name>
- /// java/net/BindException
- /// </java-name>
- [Dot42.DexImport("java/net/BindException", AccessFlags = 33)]
- public partial class BindException : global::Java.Net.SocketException
- /* scope: __dot42__ */
- {
- /// <summary>
- /// <para>Constructs a new instance. </para>
- /// </summary>
- [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
- public BindException() /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <para>Constructs a new instance with the given detail message. </para>
- /// </summary>
- [Dot42.DexImport("<init>", "(Ljava/lang/String;)V", AccessFlags = 1)]
- public BindException(string detailMessage) /* MethodBuilder.Create */
- {
- }
- }
- /// <summary>
- /// <para>The <c> NoRouteToHostException </c> will be thrown while attempting to connect to a remote host but the host cannot be reached for instance because of a badly configured router or a blocking firewall.</para><para>Most applications <b>should not</b> catch this exception; it is more robust to catch the superclass <c> SocketException </c> . </para>
- /// </summary>
- /// <java-name>
- /// java/net/NoRouteToHostException
- /// </java-name>
- [Dot42.DexImport("java/