SocketTools .NET Edition

SocketWrench.IsReadable Property

Gets a value which indicates if there is data available to be read from the socket.

[Visual Basic]
Public ReadOnly Property IsReadable As Boolean
[C#]
public bool IsReadable {get;}

Property Value

Returns true if there is data available to be read; otherwise returns false.

Remarks

The IsReadable property returns true if data can be read from the socket without blocking. For non-blocking sockets, this property can be checked before the application attempts to read the socket. Note that even if this property does return true indicating that there is data available to be read, applications should always check the return value from the Read method.

See Also

SocketWrench Class | SocketTools Namespace