SSrvMsg.java revision 2
3988N/A * The contents of this file are subject to the terms of the 3988N/A * Common Development and Distribution License (the "License"). 3988N/A * You may not use this file except in compliance with the License. 3988N/A * See the License for the specific language governing permissions 3988N/A * and limitations under the License. 3988N/A * When distributing Covered Code, include this CDDL HEADER in each 3988N/A * If applicable, add the following below this CDDL HEADER, with the 3988N/A * fields enclosed by brackets "[]" replaced with your own identifying 3988N/A * information: Portions Copyright [yyyy] [name of copyright owner] 3988N/A * Copyright (c) 1999 by Sun Microsystems, Inc. 3988N/A// Created On: Thu Oct 9 13:40:16 1997 3988N/A// Last Modified By: James Kempf 3988N/A// Last Modified On: Tue Oct 27 10:57:38 1998 3988N/A * The SSrvMsg class models the SLP service (request, reply) message 3988N/A * server side. Subclasses for other versions can specialize the 3988N/A * initialize() and makeReply() methods. 3988N/A // Construct a SSrvMsg from the byte input stream. 3988N/A // Initialize the message from the input stream. 3988N/A // First get the previous responder. 3988N/A // Validate, but check for empty if solicitation for DAAdvert 3988N/A // Construct a SSrvMsg from the arguments. This will be a SrvRply 3988N/A // for transmission to the client. 3988N/A // keep this info so SAs can drop 0 replies // Write out the members of the list, including the lifetime. // Parse out a URL entry. Check overflow. If the packet has filled // up, then break out of the loop. // Note that we set overflow here because there are additional // URL's, but we don't have to truncate the packet. // We need to rewrite the size to what it should be. // Construct description. " service URLs=``" +
urls +
"''\n" +