Aegis.Network.UDPClient.Close C# (CSharp) Method

Close() public method

public Close ( ) : void
return void
        public void Close()
        {
            lock (this)
            {
                if (_socket == null)
                    return;

                EventClose?.Invoke(new IOEventResult(_endPoint, IOEventType.Close, 0));

                _socket.Close();
                _socket = null;
            }
        }