anchor.diff:  	case decode_frames(Buffer, State) of
   		{ok, Frames, NewBuffer} ->
   			?MODULE:StateName({decoded_frames, Frames, NewBuffer}, State);
  -		Error ->
  +		_Error ->
   			{next_state, closed, State}
   	end;
   
  
positive.code: 			{next_state, NextState, State2}
  	end;
  
  handle_info(Info, Statename, State) ->
  	{next_state, Statename, State}.
  
  %% @private
  
negative.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, bad_request}, Statename, State}.
  
  %% @private
  handle_info({TData, Socket, Data}, recv_handshake, {#state{transport_data = TData, socket = Socket} = State, Timeout, Opts, From, Before}) ->
  