anchor.diff:      end;
   loop_send(_Fd, _, Err, _,_) ->
       Err.
  -
  --endif.
  
positive.code:         _ ->
              case prim_inet:getfd(Out) of
                  {ok, SocketFd} ->
                      Call = list_to_binary(
                               [<<Offset:64, Count1:64, SocketFd:32>>,
                                Filename, <<0:8>>]),
                      gen_server:call(?MODULE, {send, SocketFd, Call}, infinity);
                  Error3 ->
                      Error3
              end
  
negative.code: code_change(_OldVsn, Data, _Extra) ->
      {ok, Data}.
  
  do_send(Out, SocketFd, Filename, Offset, Count) ->
      Call = list_to_binary([<<Offset:64, Count:64, SocketFd:32>>,
                             Filename, <<0:8>>]),
      case gen_server:call(?MODULE, {send, SocketFd, Call}, infinity) of
          {error, eoverflow} ->
              compat_send(Out, Filename, Offset, Count);
          Else ->
              Else
      end.
  
  -else.
  
  enabled() ->
  