SocketInputBuffer.IsDataAvailable(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.