anchor.diff:      end.
   
   
  -
  -
  -
  -%% @private
  +%% @private Parse for WS/WSS
   -spec parse_ws(binary(), #state{}) ->
       gen_server_info(#state{}).
   
  
positive.code: do_parse(<<>>, State) ->
      {ok, State#state{buffer = <<>>}};
  
  do_parse(<<"\r\n\r\n", Rest/binary>>, #state{app_id=AppId, proto=Proto}=State) 
          when Proto==tcp; Proto==tls; Proto==sctp ->
      ?debug(AppId, <<>>, "transport responding to refresh", []),
  
negative.code:     end.
  
      
  %% @private Parse for UDP/TCP/TLS/SCTP
  -spec parse(binary(), #state{}) ->
      gen_server_info(#state{}).
  
  parse(Binary, #state{buffer=Buffer}=State) ->
      Data = <<Buffer/binary, Binary/binary>>,
      case do_parse(Data, State) of
          {ok, State1} -> 
              do_noreply(State1);
          {error, Error} -> 
              do_stop(Error, State)
      end.
  
  
  