anchor.diff:  	    Res2
       end.
   
  +ensure_started() ->
  +    case whereis(?MODULE) of
  +	undefined ->
  +	    ChildSpec =
  +                {?PROCNAME_SUP, {?MODULE, start_link, []}, temporary,
  +		 1000, worker, [?MODULE]},
  +            ensure_started([kernel_safe_sup, net_sup], ChildSpec);
  +	Pid ->
  +	    Pid
  +    end.
  +
  +ensure_started([Supervisor|Supervisors], ChildSpec) ->
  +    case whereis(Supervisor) of
  +        undefined ->
  +            ensure_started(Supervisors, ChildSpec);
  +        _ ->
  +            do_start(Supervisor, ChildSpec),
  +            case whereis(?MODULE) of
  +                undefined ->
  +                    exit({could_not_start_server, ?MODULE});
  +                Pid ->
  +                    Pid
  +            end
  +    end;
  +ensure_started([], _ChildSpec) ->
  +    %% Icky fallback, run once without supervisor
  +    spawn(fun run_once/0).
  +
   do_start(Sup, C) ->
       {Child,_,_,_,_,_} = C,
       case supervisor:start_child(Sup,C) of
  
positive.code: 	    do_start(Sup, C)
      end.
  
  ensure_started() ->
      case whereis(?MODULE) of
  	undefined -> 
  	    C = {?PROCNAME_SUP, {?MODULE, start_link, []}, temporary, 
  		 1000, worker, [?MODULE]},
  	    case whereis(kernel_safe_sup) of
  		undefined ->
  		    case whereis(net_sup) of
  			undefined ->
  			    %% Icky fallback, run once without supervisor
  			    start_raw();
  			_ ->
  			    do_start(net_sup,C),
  			    case whereis(?MODULE) of
  				undefined ->
  				    exit({could_not_start_server, ?MODULE});
  				Pid0 ->
  				    Pid0
  			    end
  		    end;
  		_ ->
  		    do_start(kernel_safe_sup,C),
  		    case whereis(?MODULE) of
  			undefined ->
  			    exit({could_not_start_server, ?MODULE});
  			Pid1 ->
  			    Pid1
  		    end
  	    end;
  	Pid -> 
  	    Pid
      end.
  
  parse_address(BinHostent, DefaultName) ->
      case catch 
  
negative.code: -behaviour(supervisor_bridge).
  
  %% Supervisor bridge exports
  -export([start_link/0, init/1, terminate/2]).
  
  %% Server export
  -export([server_init/2, main_loop/1]).
  