anchor.diff:  -behaviour(gen_server).
   
   -include("dbus.hrl").
  --include_lib("procket/include/procket.hrl").
   
   %% api
   -export([connect/2]).
  
positive.code:     ?error("Unhandled info in ~p: ~p~n", [?MODULE, Info]),
      {noreply, State}.
  
  
  terminate(_Reason, #state{sock=Sock, loop=Loop}) ->
      case Sock of
  	undefined -> ignore;
  
negative.code: %%% Priv
  %%%
  do_read(Sock, Pid) ->
      receive
          {tcp, Sock, Buf} ->
              Pid ! {unix, list_to_binary(Buf)},
              do_read(Sock, Pid);
          Unhandled ->
              ?debug("Unhandled receive: ~p", [Unhandled]),
              do_read(Sock, Pid)
      end.
  