anchor.diff:    {ok, Pid}.
   
   % accept responses on the port given by the application configuration
  +
   init_accept(LPort) ->
     SockOpts = [binary, {backlog, 256}, {nodelay, false},
                 {reuseaddr, true},{active, false}],
  -	case gen_tcp:listen(LPort, SockOpts) of
  -	  {ok, ListenSocket} ->
  -	    accept(ListenSocket);
  -	  Error ->
  -	    ?LOG(error,
  -                 "There was an error listening to the socket for port ~p: ~p",
  -                 [LPort, Error]),
  -	    increment_counter(
  -	    error
  -	end.
  +  init_accept(LPort, SockOpts).
  +
  +init_accept(LPort, SockOpts) ->
  +  case gen_tcp:listen(LPort, SockOpts) of
  +  	{ok, ListenSocket} ->
  +    			   accept(ListenSocket); %TODO: debug
  +  	Error ->
  +	    	?LOG(error,
  +		 "There was an error listening to the socket for port ~p: ~p",
  +		 [LPort, Error]),
  +    		increment_counter(
  +    		error
  +  end.
   
   %% Accept a new socket connection to the server. If the socket
   %% connection is successful, then move on and decode the socket type
  
positive.code: -spec get_client_port() -> port() | {error, term()}.
  get_client_port()->
    PortNum = get_port('http-alt'),
    config:search_for_application_value(client_port, PortNum).
    
  -spec get_port(Protocol::protocol()) -> port() | 'undefined'.
  get_port('http-alt') -> 8080;
  get_port(_Unsupported_Protocol) -> undefined.
  
  -spec send_to(To::pid(), {Tag::atom(), Msg::any(), To::pid()}) -> {ok, term()} | 
  								  {error, term()}.
  send_to(To, {Tag, Msg, To}) ->
  	send_to(To, {Tag, Msg, To});
  
  send_to(To, {Tag, Msg, From}) ->
    To ! {Tag, Msg, From}.
  
negative.code: %% request in this process so that we are never blocking the socket
  %% server
  accept(LSock) ->
    
    case gen_tcp:accept(LSock) of
      {ok, ClientSock} ->
        spawn(fun() -> pass_on_to_proxy(ClientSock) end), %TODO: debug
  	    accept(LSock);
      Error ->
        ?LOG(error, "There was an error accepting the socket ~p: ~p",
             [LSock, Error]),
        exit(Error)
    end.
  
  %% Take the socket and decode the routing key from the packet. For
  