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

The socket timeout, in milliseconds. Use a positive value for a bounded wait; zero disables the timeout and can wait indefinitely; negative values are invalid.

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