BACnet.IP.UDPAsyncServer._sendComplete C# (CSharp) Method

_sendComplete() private method

Called when an asynchronous send operation completes
private _sendComplete ( IAsyncResult result ) : void
result IAsyncResult The IAsyncResult instance
return void
        private void _sendComplete(IAsyncResult result)
        {
            lock(_lock)
            {
                if(_socket != null)
                {
                    try
                    {
                        _socket.EndSendTo(result);
                    }
                    catch(SocketException)
                    {
                        _disposeAll();
                    }
                }
            }
        }