anchor.diff:  -export([add/1, delete/1, find/1]).
   
   -define(SERVER, ?MODULE).
  +-define(ETS_TERMINAL, terminalinfo).
  +
  +
   -include("eca_commno.hrl").
   
   -record(state, {}).
  
positive.code: %%% Internal functions
  %%%===================================================================
  getinfo([])->    
      case ets:first(terminalinfo) of
  	'$end_of_table'->
  	    [];
  	Key->
  	    ets:lookup(terminalinfo, Key)
      end;
  getinfo(Key)->	
      case ets:next(terminalinfo, Key) of
  	'$end_of_table'->
  	    [];
  	Next->
  	    ets:lookup(terminalinfo, Next)
      end.
  
  
negative.code: %%--------------------------------------------------------------------
  init([]) ->
      process_flag(trap_exit, true),
      ets:new(?ETS_TERMINAL, [public,
  			                      ordered_set,
  		                        named_table,
  			                     {keypos, #terminalInfo.commno}
  