anchor.diff:  -module(vmq_ranch_config).
   
   -behaviour(gen_server).
  --behaviour(on_config_change_hook).
   
   %% API
   -export([start_link/0,
  -         change_config/1,
            start_listener/4,
            reconfigure_listeners/1,
            stop_listener/2,
  
positive.code: %%--------------------------------------------------------------------
  init([]) ->
      process_flag(trap_exit, true),
      case vmq_plugin_mgr:enable_module_plugin(?MODULE, change_config, 1) of
          ok ->
              {ok, []};
          {error, Reason} ->
              {stop, Reason}
      end.
  
  %%--------------------------------------------------------------------
  %% @private
  
negative.code:          terminate/2,
           code_change/3]).
  
  -record(state, {}).
  
  %%%===================================================================
  %%% API
  %%%===================================================================
  