AbstractHttpClientConnection.SocketTimeout Property

Definition

Gets or sets the socket read timeout in milliseconds.

public abstract int SocketTimeout { [Android.Runtime.Register("getSocketTimeout", "()I", "GetGetSocketTimeoutHandler")] get; [Android.Runtime.Register("setSocketTimeout", "(I)V", "GetSetSocketTimeout_IHandler")] set; }
[<get: Android.Runtime.Register("getSocketTimeout", "()I", "GetGetSocketTimeoutHandler")>]
[<set: Android.Runtime.Register("setSocketTimeout", "(I)V", "GetSetSocketTimeout_IHandler")>]
member this.SocketTimeout : int with get, set

Property Value

When getting, returns the timeout in milliseconds, or -1 when it is unavailable or undefined. When setting, accepts a nonnegative timeout in milliseconds; 0 specifies an infinite (disabled) timeout, and negative values are rejected.

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