anchor.diff:      {noreply, #state{}} | {stop, term(), #state{}}.
   
   handle_info({'DOWN', MRef, process, _Pid, _Reason}=Msg, State) ->
  -    #state{servers=Servers} = State,
  -    case lists:keytake(MRef, 2, Servers) of
  +    #state{filters=Filters} = State,
  +    case lists:keytake(MRef, #filter.mon, Filters) of
           {value, _, []} ->
  -            % lager:warning("Last server leave"),
  +            % lager:debug("Last server leave"),
               {stop, normal, State};
  -        {value, {_Filter, Ref}, Servers1} ->
  -            demonitor(Ref),
  -            % lager:warning("Server leave"),
  -            {noreply, register(State#state{servers=Servers1})};
  +        {value, _, Filters1} ->
  +            % lager:debug("Server leave"),
  +            {noreply, register(State#state{filters=Filters1})};
           false ->
               lager:warning("Module ~p received unexpected info: ~p", [?MODULE, Msg]),
               {noreply, State}
  
positive.code: -module(nkpacket_cowboy).
  -author('Carlos Gonzalez <carlosj.gf@gmail.com>').
  
  -export([start/2, get_all/0, get_servers/3]).
  -export([reply/2, reply/3, reply/4]).
  -export([init/1, terminate/2, code_change/3, handle_call/3, handle_cast/2,
           handle_info/2]).
  -export([start_link/4, execute/2]).
  -export_type([filter/0]).
  
  -include_lib("nklib/include/nklib.hrl").
  -include("nkpacket.hrl").
  
  
  -type filter() :: 
      #{
          id => term(),           % Mandatory
          module => module(),     % Mandatory
  
negative.code: 
  %% @private
  -spec get_all() ->
      [{{inet:ip_address(), inet:port_number()}, pid(), [#filter{}]}].
  
  get_all() ->
      [
          {{Ip, Port}, Pid, get_filters(Ip, Port)}
          || {{Ip, Port}, Pid} <- nklib_proc:values(?MODULE)
      ].
  
  
  %% @private
  -spec get_filters(inet:ip_address(), inet:port_number()) ->
      [#filter{}].
  
  get_filters(Ip, Port) -> 
      % Should be only one
      [{Filters, _}|_] = nklib_proc:values({?MODULE, Ip, Port}),
      Filters.
  
  
  %% @doc Sends a cowboy reply 
  