Language

SocketInputBuffer.IsDataAvailable(Int32) Method

Definition

Determines whether data is available from the socket.

[Android.Runtime.Register("isDataAvailable", "(I)Z", "GetIsDataAvailable_IHandler")]
public override bool IsDataAvailable(int timeout);
[<Android.Runtime.Register("isDataAvailable", "(I)Z", "GetIsDataAvailable_IHandler")>]
override this.IsDataAvailable : int -> bool

Parameters

timeout
Int32

When no data is buffered, the socket timeout in milliseconds. A positive value bounds the wait, zero disables the timeout, and negative values are invalid. Ignored when data is already buffered.

Returns

true if data is available; otherwise, false.

Attributes

Remarks

Portions of this page are based on work created and shared by the Apache Software Foundation and used under the terms of the Apache License, Version 2.0.

Applies to