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
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.