anchor.diff:  handle_event({shutdown, Why}, _StateName, State) ->
   	{stop, Why, State};
   
  -handle_event(Event, Statename, State) ->
  +handle_event(_Event, Statename, State) ->
   	{next_state, Statename, State}.
   
   %% @private
  
positive.code: 			{reply, {error, badarg}, Statename, State}
  	end;
  
  handle_sync_event({send, Type, Msg}, From, Statename, State) when Statename =:= active; Statename =:= active_once; Statename =:= passive ->
  	#state{transport = Trans, socket = Socket} = State,
  	Data = encode(Type, Msg),
  	Reply = Trans:send(Socket, Data),
  	{reply, Reply, Statename, State};
  
  handle_sync_event(Event, _From, Statename, State) ->
  	{reply, {error, nyi}, Statename, State}.
  
  %% @private
  handle_info({TData, Socket, Data}, recv_handshake, {#state{transport_data = TData, socket = Socket} = State, Timeout, Opts, From, Before}) ->
  
negative.code: 	case decode_frames(Buffer, State) of
  		{ok, Frames, NewBuffer} ->
  			?MODULE:StateName({decoded_frames, Frames, NewBuffer}, State);
  		_Error ->
  			{next_state, closed, State}
  	end;
  
  