anchor.diff: -%%%-------------------------------------------------------------------
  -%%% File    : etorrent_t_sup.erl
  -%%% Author  : Jesper Louis Andersen <jlouis@succubus.local.domain>
  -%%% License : See COPYING
  -%%% Description : Supervision of torrent modules.
  -%%%
  -%%% Created : 13 Jul 2007 by
  -%%%     Jesper Louis Andersen <jlouis@succubus.local.domain>
  -%%%-------------------------------------------------------------------
  +%% @author Jesper Louis Andersen <jesper.louis.andersen@gmail.com>
  +%% @doc Supervise the pool of torrent files.
  +%% @end
   -module(etorrent_t_sup).
   
   -behaviour(supervisor).
  
positive.code:       Socket).
  
  %% ====================================================================
  init([Path, PeerId, Id]) ->
      FSPool = {fs_pool,
                {etorrent_io_sup, start_link, [Id, Path]},
  
negative.code:                permanent, 15000, worker, [etorrent_tracker_communication]},
      supervisor:start_child(Pid, Tracker).
  
  %% @doc Add a peer to the torrent peer pool.
  %% <p>In general, this is a simple call-through function, which hinges on the
  %% peer_pools add_peer/7 function. It is just cleaner to call through this
  %% supervisor, as it has the knowledge about the peer pool pid.</p>
  %% @end
  -spec add_peer(binary(), binary(), integer(), {ip(), integer()}, [capabilities()],
  	       port()) ->
          {ok, pid(), pid()} | {error, term()}.
  