                 return;
             }
 
+            tmp = get_param_number("max_clients", DEFAULT_MAX_NUM_PROXY_PAIRS);
+            if (tmp == null || tmp < 0) {
+                puts("Error: max_clients must be a nonnegative integer.");
+                return;
+            }
+            max_num_proxy_pairs = uint(tmp);
+
             local_addr = get_param_addr("local", DEFAULT_LOCAL_TOR_CLIENT_ADDR);
             if (!local_addr) {
                 puts("Error: Local spec must be in the form \"host:port\".");

 * The address of the facilitator to use. By default it is
 * DEFAULT_FACILITATOR_ADDR. Both <HOST> and <PORT> must be present.
 *
 * client=1
 * If set (to any value), run in client RTMFP mode. In this mode, rather than
 * connecting to a facilitator and attempting to serve clients, swfcat starts an

            port: 9002
        };

        private const DEFAULT_MAX_NUM_PROXY_PAIRS:uint = 100;

        // Milliseconds.
        private const FACILITATOR_POLL_INTERVAL:int = 10000;
