anchor.diff:  -export([init/1, handle_call/3, handle_cast/2, handle_info/2,
        terminate/2, code_change/3]).
   
  --record(state, {sock, seenqids, broadcast, port}).
  +-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
  
positive.code:     gen_udp:send(State#state.sock, Ip, Port, mochijson2:encode(Msg)),
      {noreply, State}.
  
  handle_info({udp, _Socket, {A,B,C,D}=Ip, _InPortNo, Packet}, State) ->
      ?LOG(debug, "received msg: ~s", [Packet]),
      {struct, L} = mochijson2:decode(Packet),
      case proplists:get_value(<<"_msgtype">>,L) of
  
negative.code: 		[{Qid, true}] -> 
  			{noreply, State};
  		_ ->
              ?LOG(info, "LAN dispatching query", []),
  			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)),
  