anchor.diff:                  sm_state = {true, 0, inactive} :: sm_state(),
                   replies = []}).
   
  -
   %%%===================================================================
   %%% API
   %%%===================================================================
  
positive.code:             gen_tcp:send(Socket, exml:to_iolist(StreamEnd))
      end.
  
  do_connect(IsSSLConnection, Address, Port, Args, OnConnectFun) ->
      Opts = [binary, {active, once}],
      TimeB = os:timestamp(),
      Reply = maybe_ssl_connection(IsSSLConnection, Address, Port, Opts, Args),
      TimeA = os:timestamp(),
      ConnectionTime = timer:now_diff(TimeA, TimeB),
      case Reply of
  
negative.code:     end,
      {Reply, S#state{replies = Replies}}.
  
  separate_ack_requests({false, H0, A}, Stanzas) ->
      %% Don't keep track of H
      {{false, H0, A}, [], Stanzas};
  