Documentation for this section has not yet been entered.
The UdpClient.Available property is used to determine the amount of data queued in the network buffer for reading. If data is available, call NetworkStream.Read(Byte[], int, int) to get the data. If no data is available, the UdpClient.Available property returns 0.
If the remote host shuts down or closes the connection, the UdpClient.Available property throws a System.Net.Sockets.SocketException.
If you receive a System.Net.Sockets.SocketException, use SocketException.ErrorCode to obtain the specific error code and refer to the Windows Sockets version 2 API error code documentation in the MSDN library at tp://msdn.microsoft.com/library/ for a detailed description of the error.