anchor.diff:  %% @end
   -module(dbus_peer_connection).
   
  --behaviour(gen_fsm).
  +-behaviour(gen_statem).
   -behaviour(dbus_connection).
   
   -include("dbus.hrl").
  
positive.code:             {next_state, authenticated, State#state{buf=BufAndData}}
      end;
  
  %% Other
  handle_info(closed, _, State) ->
      ?error("Connection closed...~n", []),
      {stop, closed, State};
  
  handle_info(_Evt, StateName, State) ->
      ?error("Unexpected event: ~p~n", [_Evt]),
      {next_state, StateName, State}.
  
  
  
negative.code: %% @end
  -spec set_controlling_process(Connection :: pid(), Client :: pid()) -> ok | {error, unauthorized}.
  set_controlling_process(Conn, Client) ->
      gen_statem:call(Conn, {set_controlling_process, Client}).
  
  %%
  %% gen_fsm callbacks
  