/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 1999 by Sun Microsystems, Inc.
* All rights reserved.
*
*/
// CSrvTypeMsg.java: Message class for SLP service type reply
// Author: James Kempf
// Created On: Thu Oct 9 16:15:36 1997
// Last Modified By: James Kempf
// Last Modified On: Tue Oct 27 10:57:38 1998
// Update Count: 80
//
/**
* The CSrvTypeMsg class models the SLP service type reply message.
*
* @author James Kempf
*/
// Names contain both the service type and naming authority.
// Only used for testing.
protected CSrvTypeMsg() { }
// Construct a CSrvTypeMsg from the byte input stream. This will be
// a SrvTypeRply.
throws ServiceLocationException, IOException {
// Don't parse the rest if there's an error.
return;
}
// Return if packet overflowed.
return;
}
// Validate service types.
int i, n = serviceTypes.size();
for (i = 0; i < n; i++) {
// Validate.
}
// Set the number of replies.
}
// Construct a CSrvTypeMsg from the arguments. This will be
// a SrvTypeRqst for transmission to the server.
throws ServiceLocationException {
// Convert names.
// Verify.
}
// Check for IANA.
throw
"service_type_syntax",
new Object[] { namingAuthority });
}
// Set up previous responders.
// Make payload.
// Parse out the naming authority name.
// Escape scope strings.
// Parse out the scope.
}
// Parse out the naming authority.
protected void
// Write out the naming authority.
} else {
}
}
}