anchor.diff:      end.
   
   %%--------------------------------------------------------------------
  -%% Function: handle_call/3
  -%% Description: Handling call messages
  -%% Returns: {reply, Reply, State}          |
  -%%          {reply, Reply, State, Timeout} |
  -%%          {noreply, State}               |
  -%%          {noreply, State, Timeout}      |
  -%%          {stop, Reason, Reply, State}   | (terminate/2 is called)
  -%%          {stop, Reason, State}            (terminate/2 is called)
  -%%--------------------------------------------------------------------
  -handle_call({get_socket, Proto, Host, Port}, From, State) ->
  +%% Function: handle_call(Msg, From, State)
  +%% Descrip.: Handling call messages
  +%% Returns : {reply, Reply, State}          |
  +%%           {reply, Reply, State, Timeout} |
  +%%           {noreply, State}               |
  +%%           {noreply, State, Timeout}      |
  +%%           {stop, Reason, Reply, State}   | (terminate/2 is called)
  +%%           {stop, Reason, State}            (terminate/2 is called)
  +%%--------------------------------------------------------------------
  +
  +
  +%%--------------------------------------------------------------------
  +%% Function: handle_call({get_socket, Proto, Host, Port}, From, State)
  +%%           Proto = atom(), udp | udp6
  +%%           Host  = string()
  +%%           Port  = integer()
  +%% Descrip.: Get a socket for a certain protocol (Proto).
  +%%           sipsocket_udp is currently not multi-socket, we just have
  +%%           a singe UDP socket for each protocol and that is
  +%%           'listener'. Locate and return it.
  +%% Returns : {reply, Reply, State}
  +%%           Reply = {ok, SipSocket} |
  +%%                   {error, Reason}
  +%%           SipSocket = sipsocket record()
  +%%           Reason    = string()
  +%%--------------------------------------------------------------------
  +handle_call({get_socket, Proto, _Host, _Port}, From, State) when is_atom(Proto) ->
       %% sipsocket_udp is currently not multi-socket, we just have a singe UDP socket and that is 'listener'
       %% for each Proto.
       Id = {listener, Proto},
  
positive.code: %%% Internal functions
  %%--------------------------------------------------------------------
  
  get_localaddr(Socket, DefaultAddr) ->
      case inet:sockname(Socket) of
  	{ok, {IPlist, LocalPort}} ->
  
negative.code: 	    {error, "sipsocked_udp failed"}
      end.
  
  %%--------------------------------------------------------------------
  %% Function: is_reliable_transport(_)
  %% Descrip.: No UDP protocol is reliable transport. Return false.
  %% Returns : false
  %%--------------------------------------------------------------------
  is_reliable_transport(_) ->
      false.
  