Mentalis.org Security Library documentation

VirtualSocket.Available Property

Gets the amount of data that has been received from the network and is available to be read.

[Visual Basic]
Overridable Public ReadOnly Property Available As Integer
[C#]
public virtual int Available {get;}

Property Value

The number of bytes of data that has been received from the network and are available to be read.

Remarks

If you are using a Stream VirtualSocket type, the available data is generally the total amount of data queued on the current instance. If you are using a message-oriented VirtualSocket type such as Dgram, the available data is the first message in the input queue.

Exceptions

Exception TypeCondition
SocketExceptionAn error occurs while accessing the VirtualSocket.
ObjectDisposedExceptionThe VirtualSocket has been closed.

See Also

VirtualSocket Class | VirtualSocket Members | Org.Mentalis.Security.Ssl Namespace