anchor.diff:          {ref       :: reference(),
            socket    :: gen_sctp:sctp_socket(),
            count = 0 :: uint(),  %% attached transport processes
  -         tmap = ets:new(?MODULE, []) :: ets:tid(),
  -             %% {MRef, Pid|AssocId}, {AssocId, Pid}
            pending = {0, ets:new(?MODULE, [ordered_set])},
            tref      :: reference(),
            accept    :: [match()]}).
  -%% Field tmap is used to map an incoming message or event to the
  -%% relevant transport process. Field pending implements two queues:
  -%% the first of transport-to-be processes to which an association has
  -%% been assigned (at comm_up and written into tmap) but for which
  +%% Field pending implements two queues: the first of transport-to-be
  +%% processes to which an association has been assigned but for which
   %% diameter hasn't yet spawned a transport process, a short-lived
   %% state of affairs as a new transport is spawned as a consequence of
   %% a peer being taken up, transport processes being spawned by the
  
positive.code:                                              bin = Bin}),
      ok;
  
  recv({_, #sctp_shutdown_event{assoc_id = Id}},
       #transport{assoc_id = Id}) ->
      stop;
  
  %% Note that diameter_sctp(3) documents that sctp_events cannot be
  
negative.code: l({timeout, _, close}, #listener{} = S) ->
      S.
  
  %% down/3
  %%
  %% Accepting transport has died.
  
  %% One that's waiting for transport start in the pending queue ...
  down(true, TPid, #listener{pending = {N,Q},
                             count = K}
                   = S) ->
      ets:delete(Q, TPid),
      if N < 0 ->  %% awaiting an association ...
              start_timer(S#listener{count = K-1,
                                     pending = {N+1,Q}});
         true ->   %% ... or one has been assigned
              S#listener{pending = {N-1,Q}}
      end;
  
  %% ... or one that's already attached.
  down(false, _TPid, #listener{count = K} = S) ->
      start_timer(S#listener{count = K-1}).
  
  %% t/2
  %%
  