Język

DefaultClientConnection.Opening(Socket, HttpHost) Method

Definition

Records the socket and target before connection begins, so shutdown can close a socket still being connected. If shutdown has already occurred, closes the supplied socket and fails with an I/O exception.

[Android.Runtime.Register("opening", "(Ljava/net/Socket;Lorg/apache/http/HttpHost;)V", "GetOpening_Ljava_net_Socket_Lorg_apache_http_HttpHost_Handler")]
public virtual void Opening(Java.Net.Socket? sock, Org.Apache.Http.HttpHost? target);
[<Android.Runtime.Register("opening", "(Ljava/net/Socket;Lorg/apache/http/HttpHost;)V", "GetOpening_Ljava_net_Socket_Lorg_apache_http_HttpHost_Handler")>]
abstract member Opening : Java.Net.Socket * Org.Apache.Http.HttpHost -> unit
override this.Opening : Java.Net.Socket * Org.Apache.Http.HttpHost -> unit

Parameters

sock
Socket

The socket that is about to be connected.

target
HttpHost

The host to which the connection is being opened.

Implements

Attributes

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