anchor.diff:                  [?MODULE]
               },
               {ok, Pid} = nksip_transport_sup:add_transport(AppId, Spec),
  -            controlling_process(Proto, Socket, Pid),
  -            setopts(Proto, Socket, [{active, once}]),
  +            TranspMod:controlling_process(Socket, Pid),
  +            InetMod:setopts(Socket, [{active, once}]),
               ?debug(AppId, "~p connected to ~p", [Proto, {Ip, Port}]),
               {ok, Pid, Transp1};
           {error, Error} ->
  
positive.code: connect(AppId, Transp, Opts) ->
      #transport{proto=Proto, remote_ip=Ip, remote_port=Port} = Transp,
      SocketOpts = outbound_opts(Proto, Opts),
      case socket_connect(Proto, Ip, Port, SocketOpts) of
          {ok, Socket} -> 
              {ok, {LocalIp, LocalPort}} = case Proto of
                  tcp -> inet:sockname(Socket);
  
negative.code:     nksip_transport_conn:start_link(AppId, Transp1, Socket, Timeout).
  
  
  