anchor.diff:      {error, "invalid rdb data"}.
   
   send_pkg(Sock, Pkt) when is_list(Pkt) ->
  -    io:format("pkt -> ~p ~n", [Pkt]),
       gen_tcp:send(Sock, [Pkt] ++ ?CRLF);
   send_pkg(_, _) ->
       throw("cannot send invalid tcp paquet").
  
positive.code: handle_cast(replication, S = #state{socket=Sock, state=stream}) ->
      io:format("receive stream ~n"),
      inet:setopts(Sock, [{active,once}]),
      io:format("foo ~n"),
      {noreply, S};
  
  %% Generic
  
negative.code:          code_change/3]).
  
  -define(RDB_FILE, "/tmp/master/dump3.rdb").
  -define(BS, <<" ">>). % Binary blank space
  -define(CRLF, <<"\r\n">>).
  
  -record(state, {runid="?",
  