anchor.diff:      end.
   
   
  +%%%
  +% Converts binary to hex
  +%%%
  +
  +bin_to_hex(Bin) -> bin_to_hex(Bin, []).
  +
  +bin_to_hex(<<>>, Accum) -> lists:reverse(Accum);
  +bin_to_hex(<<Char1:4, Char2:4, Rest/binary>>, Accum) ->
  +    Letter1 = case Char1 of
  +        Num1 when Num1 < 10 -> $0 + Num1;
  +        _ -> $a + (Char1 - 10)
  +    end,
  +    Letter2 = case Char2 of
  +        Num2 when Num2 < 10 -> $0 + Num2;
  +        _ -> $a + (Char2 - 10)
  +    end,
  +    bin_to_hex(Rest, [Letter2, Letter1 | Accum]).
  +
  
positive.code: -spec new(string(), integer(), boolean()) -> #conn{}.
  new(Server, Port, HashKeys) ->
      {ok, Pid} = bloomd_conn:start_link(Server, Port),
      #conn{pid=Pid, hash_keys=HashKeys}.
  
  % Returns a filter record for the given connection
  filter(Conn, Filter) ->
  
negative.code: 
  % Create with default options
  create(Conn, Filter) -> create(Conn, Filter, []).
  
  % Create with a filter object
  create(Filter) ->
      Conn = Filter#filter.conn,
      Name = Filter#filter.name,
      create(Conn, Name, []).
  
  % Lists the existing filters. Returns a proplist of the
  % filter name to a 'FilterInfo' line.
  