anchor.diff: +%%%-------------------------------------------------------------------
  +%%% @doc
  +%%% Detailed Documentation: See section 3.6 of docs/aufgabe1_dokumentation.pdf
  +%%%
  +%%% This module receives incoming messages and validates them before it puts them
  +%%% into the DLQ. Invalid messages are hold back. A valid message is a message,
  +%%%  that is expected by the DLQ.Any other message is invalid.
  +%%% For Details about the error handling process see docs/aufgabe1_dokumentation.pdf
  +%%% section 3.6.3.
  +%%% @end
  +%%%-------------------------------------------------------------------
   -module(hbq).
   -export([start/0, start/1, hbq/3, apply_on_list/3, sort/1]).
   
  
positive.code:       end
    end.
  
  hbq(HBQ, DLQ, Config) ->
    receive
    % Initializes the HBQ with empty value and sends reply to server
  
negative.code:       {[HBQMessage | HBQRest], [DLQMessages, DLQSize]}
    end.
  
  %% push only valid messages into dlq, message is valid if it is expected
  pushToDLQ([NNr, Msg, TSclientout, TShbqin], DLQ, Logfile) ->
    ExpectedNNr = dlq:expectedNr(DLQ),
    if
  