ConnectionReceiveWhatsAvailable Method |
ReceiveWhatsAvailable reads bytes from the connection to fill the passed byte[] buffer.
Unlike Receive, this function will not block to wait for additional incoming data, but return immediately with the data that was available.
Namespace: Crestron.SimplSharp.NetAssembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntaxpublic int ReceiveWhatsAvailable(
byte[] aBuffer,
int aOffset,
int aSize
)
Parameters
- aBuffer Byte
- System.Byte array to receive the bytes read.
- aOffset Int32
- Starting offset in the byte array.
- aSize Int32
- The number of bytes to receive.
Return Value
Int32 Returns the number of bytes read.
Version Information
.NET
Supported in: 6.0
.NET Compact Framework
Supported in: 3.5
See Also