/osnet-11/usr/src/lib/libslp/javalib/com/sun/slp/ |
H A D | SLPV1SDAAdvert.java | 54 Vector scopes, 58 super(hdr, xid, timestamp, url, scopes, attrs); 66 Vector scopes, 75 int i, n = scopes.size(); 78 hdr.validateScope((String)scopes.elementAt(i)); 90 scopes.size() <= 1 && 91 scopes.contains(Defaults.DEFAULT_SCOPE)) { 92 scopes.removeAllElements(); 106 hdr.parseCommaSeparatedListOut(scopes, baos); 114 " scopes 50 SLPV1SDAAdvert(SrvLocHeader hdr, short xid, long timestamp, ServiceURL url, Vector scopes, Vector attrs) argument 64 initialize(long timestamp, ServiceURL url, Vector scopes, Vector attrs) argument [all...] |
H A D | Locator.java | 41 * services, scopes, and service instances, and to query about attributes 67 * @param scopes The SLP scopes of the types. 77 Vector scopes) 86 * @param scopes The SLP scopes of the service types. 97 Vector scopes, 106 * @param scopes The SLP scopes of the service. 126 Vector scopes, 76 findServiceTypes(String namingAuthority, Vector scopes) argument 96 findServices(ServiceType type, Vector scopes, String query) argument 125 findAttributes(ServiceURL URL, Vector scopes, Vector attributeIds) argument 154 findAttributes(ServiceType type, Vector scopes, Vector attributeIds) argument [all...] |
H A D | ServiceStore.java | 68 * Key for fetching hashtable of service URLs v.s. scopes values from 116 * Return the Vector of scopes in which this record is registered. 118 * @return The Vector of scopes in which this record is registered. 184 * @param scopes Vector of scopes in which this record is registered. 196 Vector scopes, Locale locale, 203 * and locale deregistered, regardless of the number of scopes in 208 * @param scopes Vector of scopes. 217 void deregister(ServiceURL url, Vector scopes, Hashtabl argument 195 register(ServiceURL url, Vector attrs, Vector scopes, Locale locale, Hashtable urlSig, Hashtable attrSig) argument 234 updateRegistration(ServiceURL url, Vector attrs, Vector scopes, Locale locale) argument 258 deleteAttributes(ServiceURL url, Vector scopes, Vector attrTags, Locale locale) argument 279 findServiceTypes(String namingAuthority, Vector scopes) argument 312 findServices(String serviceType, Vector scopes, String query, Locale locale) argument 344 findAttributes(ServiceURL url, Vector scopes, Vector attrTags, Locale locale) argument 372 findAttributes(String serviceType, Vector scopes, Vector attrTags, Locale locale) argument 404 getServiceRecordsByScope(Vector scopes) argument [all...] |
H A D | CSrvDereg.java | 55 Vector scopes, 70 this.initialize(locale, url, scopes, tags, auth); 78 Vector scopes, 87 hdr.scopes = (Vector)scopes.clone(); 101 // Escape scopes. 103 hdr.escapeScopeStrings(scopes); 105 // Parse out the scopes. 107 hdr.parseCommaSeparatedListOut(scopes, baos); 53 CSrvDereg(Locale locale, ServiceURL url, Vector scopes, Vector tags, Hashtable auth) argument 76 initialize(Locale locale, ServiceURL url, Vector scopes, Vector tags, Hashtable auth) argument
|
H A D | CAttrMsg.java | 98 CAttrMsg(Locale locale, ServiceURL url, Vector scopes, Vector tags) argument 103 constructPayload(url.toString(), scopes, tags); 110 CAttrMsg(Locale locale, ServiceType type, Vector scopes, Vector tags) argument 115 constructPayload(type.toString(), scopes, tags); 122 Vector scopes, 127 hdr.scopes = (Vector)scopes.clone(); 141 hdr.escapeScopeStrings(scopes); 143 // Parse out the scopes. 145 hdr.parseCommaSeparatedListOut(scopes, bao 121 constructPayload(String typeOrURL, Vector scopes, Vector tags) argument [all...] |
H A D | DATable.java | 58 // SA only scopes property. 62 // Hashtable key for multicast scopes. 71 * A record for all DAs supporting exactly the same set of scopes. 79 // The scopes supported. 81 Vector scopes = null; // String scope names field in class:DATable.DARecord 90 * MULTICAST_KEY - Vector of scopes from the incoming vector that are not 94 * equivalence classes of DAs that all support the same set of scopes. 95 * Only DAs supporting one or more scopes in the incoming vector 99 * set of scopes are mutually exclusive. For example, if DA1 supports 100 * scopes 109 findDAScopes(Vector scopes) argument 120 removeDA(InetAddress address, Vector scopes) argument 256 filterScopes(Vector scopes, Vector filter, boolean inVector) argument 281 addToEquivClass(String daaddr, Vector scopes, Vector ret) argument 359 validateScopes(Vector scopes, Locale locale) argument [all...] |
H A D | SLPV1CDAAdvert.java | 105 hdr.scopes = hdr.parseCommaSeparatedListIn(buf.toString(), true); 109 int i, n = hdr.scopes.size(); 112 String scope = (String)hdr.scopes.elementAt(i); 115 hdr.scopes.setElementAt(scope.toLowerCase().trim(), i); 127 hdr.scopes.size() == 0) { 128 hdr.scopes.addElement(Defaults.DEFAULT_SCOPE);
|
H A D | CSrvReg.java | 57 Vector scopes, 100 scopes, 112 Vector scopes, 121 hdr.scopes = (Vector)scopes.clone(); 142 hdr.escapeScopeStrings(scopes); 146 hdr.parseCommaSeparatedListOut(scopes, baos); 54 CSrvReg(boolean fresh, Locale locale, ServiceURL urlEntry, Vector scopes, Vector attrs, Hashtable URLSignatures, Hashtable attrSignatures) argument 109 initialize(boolean fresh, Locale locale, ServiceURL urlEntry, Vector scopes, Vector attrs, Hashtable URLSignatures, Hashtable attrSignatures) argument
|
H A D | SLPV1SSrvReg.java | 49 // For identifying scopes. 85 // Get the scopes. Note that if there's no scope, the request 89 Vector scopes = new Vector(); 118 scopes.addElement(scope); 128 if (scopes.size() <= 0) { 131 scopes.addElement(""); 134 scopes.addElement(Defaults.DEFAULT_SCOPE); 139 hdr.scopes = scopes; 152 // Check scopes [all...] |
H A D | SSAAdvert.java | 56 Vector scopes, 72 this.initialize(url, scopes, attrs); 77 void initialize(ServiceURL url, Vector scopes, Vector attrs) argument 95 DATable.validateScopes(scopes, hdr.locale); 96 hdr.scopes = (Vector)scopes.clone(); 100 hdr.escapeScopeStrings(scopes); 116 hdr.parseCommaSeparatedListOut(scopes, baos); 52 SSAAdvert(int version, short xid, Locale locale, ServiceURL url, Vector scopes, Vector attrs) argument
|
H A D | CSrvMsg.java | 115 Vector scopes, 119 this.initialize(locale, serviceType, scopes, query); 128 Vector scopes, 134 hdr.scopes = (Vector)scopes.clone(); 146 hdr.escapeScopeStrings(scopes); 162 // Write out scopes. 164 hdr.parseCommaSeparatedListOut(scopes, baos); 113 CSrvMsg(Locale locale, ServiceType serviceType, Vector scopes, String query) argument 126 initialize(Locale locale, ServiceType serviceType, Vector scopes, String query) argument
|
H A D | SDAAdvert.java | 53 Vector scopes, 78 this.initialize(timestamp, url, scopes, attrs); 88 Vector scopes, 93 hdr.scopes = (Vector)scopes.clone(); 116 DATable.validateScopes(scopes, hdr.locale); 117 hdr.scopes = (Vector)scopes; 121 hdr.escapeScopeStrings(scopes); 141 hdr.parseCommaSeparatedListOut(scopes, bao 49 SDAAdvert(SrvLocHeader hdr, short xid, long timestamp, ServiceURL url, Vector scopes, Vector attrs) argument 86 initialize(long timestamp, ServiceURL url, Vector scopes, Vector attrs) argument [all...] |
H A D | CSrvTypeMsg.java | 108 CSrvTypeMsg(Locale locale, String na, Vector scopes) argument 114 hdr.scopes = (Vector)scopes.clone(); 151 hdr.escapeScopeStrings(scopes); 155 hdr.parseCommaSeparatedListOut(scopes, baos);
|
H A D | UARequester.java | 93 * @param scopes The SLP scopes of the types. 103 findServiceTypes(String NA, Vector scopes) argument 107 Assert.nonNullParameter(scopes, "scopes"); 115 scopes); 147 * @param scopes The SLP scopes of the service types. 158 findServices(ServiceType type, Vector scopes, String query) argument 162 Assert.nonNullParameter(scopes, "scope 237 findAttributes(ServiceURL URL, Vector scopes, Vector attributeIds) argument 340 findAttributes(ServiceType type, Vector scopes, Vector attributeIds) argument 411 createMessages(int msgType, Object t1, Object t2, ServiceType type, Vector scopes) argument [all...] |
H A D | SLPServerHeaderV2.java | 279 hdr.scopes = null; 302 " scopes=``" + scopes + "''\n" + 319 scopes = parseCommaSeparatedListIn(buf.toString(), true); 323 unescapeScopeStrings(scopes); 327 DATable.validateScopes(scopes, locale); 349 Vector scopes, 353 // If scopes vector is null, then return all scopes for this 356 if (scopes 346 getDAAdvert(short xid, long timestamp, ServiceURL url, Vector scopes, Vector attrs) argument [all...] |
H A D | ServiceTable.java | 288 Vector scopes = rec.getScopes(); 305 scopes, 311 // is needed. This creates the auth blocks for the scopes. 336 store.register(surl, attrs, scopes, locale, urlSig, attrSig); 357 scopes}); 509 Vector scopes = hdr.scopes; 572 // Check if scopes are supported. 574 if (!areSupportedScopes(scopes)) { 628 scopes, 1282 areSupportedScopes(Vector scopes) argument 1401 makeDAAdvert(SrvLocHeader hdr, InetAddress daAddr, short xid, Vector scopes, SLPConfig config) argument [all...] |
H A D | ServerDATable.java | 44 * the same scopes. A variety of implementations are possible. 112 // Advertise for *all* scopes. This is because we need to 135 * @param scopes The scopes. 144 Vector scopes, 152 * URL's as keys, scopes as values) for DAs matching the query. 162 * scopes. 211 // Get a hashtable of DAs that match the scopes in the message. 213 Hashtable daScopeRec = findDAScopes(hdr.scopes); 290 if (removeDA(addr, hdr.scopes)) { 143 recordNewDA(ServiceURL url, Vector scopes, long timestamp, int version, Vector attrs, String spis) argument 365 forwardRegistrations(ServiceURL url, Vector scopes, long timestamp, int version) argument [all...] |
H A D | SunDATable.java | 45 * a filter for the scopes formatted as: 47 * "(&(|(scopes=<scope1>)(scopes=<scope2>)(scopes=<scope3>)...)(version=2))" 52 * DA IP address in the host field and a list of scopes in the URL 55 * service:directory-agent.sun:// 199.200.200.5/scopes=eng, corp, freeb 57 * The DA/scope table is initially obtained for all scopes in the 67 // The scopes identifier. 75 // The scopes which reside on the SA only. 89 * DAs and scopes an 126 findDAScopes(Vector scopes) argument 207 removeDA(InetAddress address, Vector scopes) argument 253 getWireTable(Vector scopes, int version) argument 272 getSrvReply(Vector scopes, int version) argument [all...] |
H A D | ServiceStoreInMemory.java | 76 private Vector scopes = null; field in class:ServiceStoreInMemory.ParserBVCollector 78 ParserBVCollector(Vector scopes) { argument 79 this.scopes = scopes; 94 DATable.filterScopes(s, scopes, false); 163 * collector for the collecting records if scopes match. 173 private Vector scopes = null; // the scopes we're looking for field in class:ServiceStoreInMemory.ScopeBVCollector 175 ScopeBVCollector(Vector records, Vector scopes) { argument 177 this.scopes 1099 private Vector scopes = null; // the scopes field in class:ServiceStoreInMemory.ServiceRecordInMemory 1523 register(ServiceURL url, Vector attrs, Vector scopes, Locale locale, Hashtable urlSig, Hashtable attrSig) argument 1600 deregister(ServiceURL url, Vector scopes, Hashtable urlSig) argument 1666 updateRegistration(ServiceURL url, Vector attrs, Vector scopes, Locale locale) argument 1734 deleteAttributes(ServiceURL url, Vector scopes, Vector attrTags, Locale locale) argument 1871 findServiceTypes(String namingAuthority, Vector scopes) argument 1963 findServices(String serviceType, Vector scopes, String query, Locale locale) argument 2094 findAttributes(ServiceURL url, Vector scopes, Vector attrTags, Locale locale) argument 2230 findAttributes(String serviceType, Vector scopes, Vector attrTags, Locale locale) argument 2342 getServiceRecordsByScope(Vector scopes) argument 2697 deregisterInternal(ServiceURL url, Vector scopes, String lang) argument 2830 findExistingRecord(ServiceURL surl, Vector scopes, String lang) argument 2991 checkScopeStatus(ServiceURL surl, Vector scopes, short errCode) argument 3038 checkForExistingUnderOtherServiceType(ServiceURL url, Vector scopes) argument 3403 languageSupported(String type, Vector scopes, String lang) argument [all...] |
H A D | CSAAdvert.java | 97 hdr.scopes = 100 // Unescape scopes. 102 hdr.unescapeScopeStrings(hdr.scopes); 106 DATable.validateScopes(hdr.scopes, hdr.locale);
|
H A D | SSrvMsg.java | 97 // Get vector of scopes. 101 hdr.scopes = hdr.parseCommaSeparatedListIn(buf.toString(), true); 106 if (hdr.scopes.size() <= 0) { 119 hdr.unescapeScopeStrings(hdr.scopes); 121 DATable.validateScopes(hdr.scopes, hdr.locale);
|
H A D | ServiceStoreFactory.java | 67 // Identifies scopes pseudo-attribute. 69 final private static String SCOPES_ATTR_ID = "scopes"; 382 Vector scopes = null; 384 // Use scopes we've been configured with if none. 387 scopes = conf.getSAConfiguredScopes(); 391 scopes = (Vector)scopeAttr.getValues(); 396 SLPHeaderV2.unescapeScopeStrings(scopes); 400 DATable.validateScopes(scopes, locale); 413 store.register(url, attrs, scopes, locale, null, null); 416 CSrvReg creg = new CSrvReg(true, locale, url, scopes, [all...] |
/osnet-11/usr/src/lib/libslp/clib/ |
H A D | SAAdvert.c | 30 * SAAdverts are used internally by libslp to discover scopes in the 31 * absence of configured scopes and scopes found by active and 41 char **scopes, char **attrs) { 50 *surl = *scopes = *attrs = NULL; 66 if ((err = slp_get_string(reply, len, &off, scopes)) != SLP_OK) { 97 if (*scopes) free(*scopes); 40 slp_unpackSAAdvert(char *reply, char **surl, char **scopes, char **attrs) argument
|
H A D | slp_targets.c | 51 * DAs which support the greatest number of requested scopes are called 69 * slp_new_target_list: creates a new target list for the given scopes, 70 * and populates with all known DAs for these scopes. 71 * slp_get_uc_scopes: returns a list of all scopes for which there are 73 * slp_get_mc_scopes: returns a list of all scopes for which there are 115 char *scopes; member in struct:da_node 128 struct scope_targets **scopes; member in struct:target_list 142 SLPError slp_new_target_list(slp_handle_impl_t *hp, const char *scopes, argument 152 /* count the number of scopes in the list */ 154 for (p = (char *)scopes; 378 struct scope_targets **scopes = tl->scopes; local 416 add_da_entry(struct da_node **tel, struct sockaddr_in *sin, char *scopes, slp_net_prox proximity, int c) argument 557 format_query(char *q, const char *scopes) argument [all...] |
H A D | DAAdvert.c | 39 SLPError slp_unpackDAAdvert(char *reply, char **surl, char **scopes, argument 50 *surl = *scopes = *attrs = *spis = NULL; 82 /* scopes */ 85 if ((err = slp_get_string(reply, len, &off, scopes)) != SLP_OK) { 124 if (*scopes) free (*scopes);
|