Share via


ProxySelector.ConnectFailed(URI, SocketAddress, IOException) Method

Definition

Called to indicate that a connection could not be established to a proxy/socks server.

[Android.Runtime.Register("connectFailed", "(Ljava/net/URI;Ljava/net/SocketAddress;Ljava/io/IOException;)V", "GetConnectFailed_Ljava_net_URI_Ljava_net_SocketAddress_Ljava_io_IOException_Handler")]
public abstract void ConnectFailed (Java.Net.URI? uri, Java.Net.SocketAddress? sa, Java.IO.IOException? ioe);
[<Android.Runtime.Register("connectFailed", "(Ljava/net/URI;Ljava/net/SocketAddress;Ljava/io/IOException;)V", "GetConnectFailed_Ljava_net_URI_Ljava_net_SocketAddress_Ljava_io_IOException_Handler")>]
abstract member ConnectFailed : Java.Net.URI * Java.Net.SocketAddress * Java.IO.IOException -> unit

Parameters

uri
URI

The URI that the proxy at sa failed to serve.

sa
SocketAddress

The socket address of the proxy/SOCKS server

ioe
IOException

The I/O exception thrown when the connect failed.

Attributes

Exceptions

if any argument is null.

Remarks

Called to indicate that a connection could not be established to a proxy/socks server. An implementation of this method can temporarily remove the proxies or reorder the sequence of proxies returned by #select(URI), using the address and the IOException caught when trying to connect.

Java documentation for java.net.ProxySelector.connectFailed(java.net.URI, java.net.SocketAddress, java.io.IOException).

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