anchor.diff:  	LAddr = {0,0,0,0},
       Port = ?CONFVAL({lan,port},?PORT),
       BC = ?CONFVAL({lan,broadcast},?BROADCAST),
  +    % Broadcast socket:
       {ok, Sock} = gen_udp:open(Port, [binary, 
                                        {reuseaddr, true},{ip, BC}, 
                                        {add_membership, {BC, LAddr}}]),
  +    % Normal socket, which direct replies are sent to:
  +    {ok, SockP}= gen_udp:open(Port, [binary, 
  +                                     {reuseaddr, true}, {ip, {0,0,0,0}}]),
       resolver:add_resolver(?MODULE, name(self()), weight(self()), targettime(self()), self()),
       {ok, #state{sock=Sock, 
  +                sockp=SockP,
                   seenqids=SQ, 
                   broadcast=BC,
                   port=Port
  
positive.code: 		[{Qid, true}] -> 
  			{noreply, State};
  		_ ->
  			ets:insert(State#state.seenqids, {Qid,true}),
  			Msg = {struct, [ {<<"_msgtype">>, <<"rq">>},{<<"qid">>,Qid} | Parts ]},
  			gen_udp:send(State#state.sock, State#state.broadcast, State#state.port, mochijson2:encode(Msg)),
  
negative.code: -export([init/1, handle_call/3, handle_cast/2, handle_info/2,
       terminate/2, code_change/3]).
  
  -record(state, {sock, sockp, seenqids, broadcast, port}).
  
  -define(BROADCAST, {239,255,0,1}). % default, can be changed in config
  -define(PORT, 60210). % can be changed in config
  