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

Close() public method

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

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