2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License (the "License"). 2N/A * You may not use this file except in compliance with the License. 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright (c) 2001 by Sun Microsystems, Inc. 2N/A * All rights reserved. 2N/A// handle incoming request. 2N/A// Author: James Kempf 2N/A// Created On: Mon May 18 13:31:40 1998 2N/A// Last Modified By: James Kempf 2N/A// Last Modified On: Tue Jan 12 11:03:30 1999 2N/A * Listen on the SLP port for clients requesting a stream connection. Spawn 2N/A * a request handler to handle the connection. 2N/A * @author James Kempf, Erik Guttman 2N/A // Initialize a stream (TCP) listener on an interface. 2N/A // If we've got it, return. 2N/A // Get config object. 2N/A // Create the new stream listener. 2N/A // Start it running. 2N/A // Create a server socket for incoming Stream connections. 2N/A "socket_creation_failure",
2N/A // Listen to port 427, accept incoming connections, pass the socket 2N/A // off to a new RequestHandler to process. 2N/A // Loop, blocking on acceptence of connections. 2N/A // Set socket timeout in case something goes wrong. 2N/A "sls_repeat_failure",