Jazyk

DefaultClientConnectionOperator.PrepareSocket Method

Definition

Applies TCP no-delay and read timeout settings to the socket, and applies linger settings when the configured linger value is nonnegative.

[Android.Runtime.Register("prepareSocket", "(Ljava/net/Socket;Lorg/apache/http/protocol/HttpContext;Lorg/apache/http/params/HttpParams;)V", "GetPrepareSocket_Ljava_net_Socket_Lorg_apache_http_protocol_HttpContext_Lorg_apache_http_params_HttpParams_Handler")]
protected virtual void PrepareSocket(Java.Net.Socket? sock, Org.Apache.Http.Protocol.IHttpContext? context, Org.Apache.Http.Params.IHttpParams? params);
[<Android.Runtime.Register("prepareSocket", "(Ljava/net/Socket;Lorg/apache/http/protocol/HttpContext;Lorg/apache/http/params/HttpParams;)V", "GetPrepareSocket_Ljava_net_Socket_Lorg_apache_http_protocol_HttpContext_Lorg_apache_http_params_HttpParams_Handler")>]
abstract member PrepareSocket : Java.Net.Socket * Org.Apache.Http.Protocol.IHttpContext * Org.Apache.Http.Params.IHttpParams -> unit
override this.PrepareSocket : Java.Net.Socket * Org.Apache.Http.Protocol.IHttpContext * Org.Apache.Http.Params.IHttpParams -> unit

Parameters

sock
Socket

The socket to configure.

context
IHttpContext

The connection context, available to overrides and not used by the default implementation.

params
IHttpParams

The parameters that supply TCP no-delay, read timeout, and linger settings.

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