anchor.diff:      {Result, Listen} = gen_tcp:listen(Port,[binary,{active,false},{packet,0}, {send_timeout,?CONNECTION_TIMEOUT}]),
       case Result of
           ok ->  new_connection(Listen);
  -        error -> io:format("ERROR, failed to listen on port ~p as ~p",[Port,Listen])
  +        error -> error_msg("ERROR, failed to listen on port ~p as ~p",[Port,Listen])
       end.
   
   %% Initialize the Host to IP cache
  
positive.code:     end.
  
  url_to_ip(URL) ->
      %%io:format("The URL = ~p need to transfer to ip ~n", [URL]),
      IP = get_ip(URL),
      case IP of
          undefined ->
  
negative.code: %% Start a server to listen on port 1080, which later will establish connection from  SOCKS client
  
  %% TODO Support authentication
  %% TODO Support UDP
  %% TODO Support Bind
  
  -module(entry).
  -export([start_socks/0,start_socks/1]).
  