/illumos-gate/usr/src/lib/libslp/javalib/com/sun/slp/ |
H A D | DATable.java | 81 Vector scopes = null; // String scope names field in DATable.DARecord 109 abstract Hashtable findDAScopes(Vector scopes) in findDAScopes() argument 120 abstract boolean removeDA(InetAddress address, Vector scopes); in removeDA() argument 138 Vector scopes = new Vector(); in findScopes() local 139 Hashtable daRec = daTable.findDAScopes(scopes); in findScopes() 150 Vector v = rec.scopes; in findScopes() 160 if (!scopes.contains(s)) { in findScopes() 161 scopes.addElement(s); in findScopes() 168 return scopes; in findScopes() 256 filterScopes(Vector scopes, Vector filter, boolean inVector) { in filterScopes() argument [all …]
|
H A D | ServiceTable.java | 288 Vector scopes = rec.getScopes(); in registerStore() local 305 scopes, in registerStore() 336 store.register(surl, attrs, scopes, locale, urlSig, attrSig); in registerStore() 357 scopes}); in registerStore() 509 Vector scopes = hdr.scopes; in register() local 574 if (!areSupportedScopes(scopes)) { in register() 628 scopes, in register() 639 store.updateRegistration(surl, attrs, scopes, locale); in register() 655 scopes}); in register() 701 scopes}); in register() [all …]
|
H A D | SLPV1SDAAdvert.java | 54 Vector scopes, in SLPV1SDAAdvert() argument 58 super(hdr, xid, timestamp, url, scopes, attrs); in SLPV1SDAAdvert() 66 Vector scopes, in initialize() argument 75 int i, n = scopes.size(); in initialize() 78 hdr.validateScope((String)scopes.elementAt(i)); in initialize() 90 scopes.size() <= 1 && in initialize() 91 scopes.contains(Defaults.DEFAULT_SCOPE)) { in initialize() 92 scopes.removeAllElements(); in initialize() 106 hdr.parseCommaSeparatedListOut(scopes, baos); in initialize() 114 " scopes=``" + scopes + "''\n"); in initialize()
|
H A D | UARequester.java | 103 findServiceTypes(String NA, Vector scopes) in findServiceTypes() argument 107 Assert.nonNullParameter(scopes, "scopes"); in findServiceTypes() 115 scopes); in findServiceTypes() 158 findServices(ServiceType type, Vector scopes, String query) in findServices() argument 162 Assert.nonNullParameter(scopes, "scopes"); in findServices() 171 scopes); in findServices() 237 findAttributes(ServiceURL URL, Vector scopes, Vector attributeIds) in findAttributes() argument 241 Assert.nonNullParameter(scopes, "scopes"); in findAttributes() 248 scopes); in findAttributes() 340 findAttributes(ServiceType type, Vector scopes, Vector attributeIds) in findAttributes() argument [all …]
|
H A D | ServiceStore.java | 196 Vector scopes, Locale locale, in register() argument 217 void deregister(ServiceURL url, Vector scopes, Hashtable urlSig) in deregister() argument 235 Vector scopes, Locale locale) in updateRegistration() argument 259 Vector scopes, in deleteAttributes() argument 279 Vector findServiceTypes(String namingAuthority, Vector scopes) in findServiceTypes() argument 313 Vector scopes, in findServices() argument 345 Vector scopes, in findAttributes() argument 373 Vector scopes, in findAttributes() argument 404 Enumeration getServiceRecordsByScope(Vector scopes); in getServiceRecordsByScope() argument
|
H A D | CAttrMsg.java | 98 CAttrMsg(Locale locale, ServiceURL url, Vector scopes, Vector tags) in CAttrMsg() argument 103 constructPayload(url.toString(), scopes, tags); in CAttrMsg() local 110 CAttrMsg(Locale locale, ServiceType type, Vector scopes, Vector tags) in CAttrMsg() argument 115 constructPayload(type.toString(), scopes, tags); in CAttrMsg() local 122 Vector scopes, in constructPayload() argument 127 hdr.scopes = (Vector)scopes.clone(); in constructPayload() 141 hdr.escapeScopeStrings(scopes); in constructPayload() 145 hdr.parseCommaSeparatedListOut(scopes, baos); in constructPayload()
|
H A D | CSrvDereg.java | 55 Vector scopes, in CSrvDereg() argument 70 this.initialize(locale, url, scopes, tags, auth); in CSrvDereg() 78 Vector scopes, in initialize() argument 87 hdr.scopes = (Vector)scopes.clone(); in initialize() 103 hdr.escapeScopeStrings(scopes); in initialize() 107 hdr.parseCommaSeparatedListOut(scopes, baos); in initialize()
|
H A D | ServiceStoreInMemory.java | 76 private Vector scopes = null; field in ServiceStoreInMemory.ParserBVCollector 78 ParserBVCollector(Vector scopes) { in ParserBVCollector() argument 79 this.scopes = scopes; in ParserBVCollector() 94 DATable.filterScopes(s, scopes, false); in setReturn() 173 private Vector scopes = null; // the scopes we're looking for field in ServiceStoreInMemory.ScopeBVCollector 175 ScopeBVCollector(Vector records, Vector scopes) { in ScopeBVCollector() argument 177 this.scopes = scopes; in ScopeBVCollector() 188 if (scopes == null) { in setReturn() 197 int len = scopes.size(); in setReturn() 200 if (rscopes.contains(scopes.elementAt(i))) { in setReturn() [all …]
|
H A D | SLPV1SSrvReg.java | 89 Vector scopes = new Vector(); in initialize() local 118 scopes.addElement(scope); in initialize() 128 if (scopes.size() <= 0) { in initialize() 131 scopes.addElement(""); in initialize() 134 scopes.addElement(Defaults.DEFAULT_SCOPE); in initialize() 139 hdr.scopes = scopes; in initialize() 156 DATable.filterScopes(recScopes, scopes, true); in initialize()
|
H A D | SDAAdvert.java | 53 Vector scopes, in SDAAdvert() argument 78 this.initialize(timestamp, url, scopes, attrs); in SDAAdvert() 88 Vector scopes, in initialize() argument 93 hdr.scopes = (Vector)scopes.clone(); in initialize() 116 DATable.validateScopes(scopes, hdr.locale); in initialize() 117 hdr.scopes = (Vector)scopes; in initialize() 121 hdr.escapeScopeStrings(scopes); in initialize() 141 hdr.parseCommaSeparatedListOut(scopes, baos); in initialize()
|
H A D | SSAAdvert.java | 56 Vector scopes, in SSAAdvert() argument 72 this.initialize(url, scopes, attrs); in SSAAdvert() 77 void initialize(ServiceURL url, Vector scopes, Vector attrs) in initialize() argument 95 DATable.validateScopes(scopes, hdr.locale); in initialize() 96 hdr.scopes = (Vector)scopes.clone(); in initialize() 100 hdr.escapeScopeStrings(scopes); in initialize() 116 hdr.parseCommaSeparatedListOut(scopes, baos); in initialize()
|
H A D | ServerDATable.java | 144 Vector scopes, in recordNewDA() argument 213 Hashtable daScopeRec = findDAScopes(hdr.scopes); in forwardSAMessage() 290 if (removeDA(addr, hdr.scopes)) { in handleAdvertIn() 296 hdr.scopes}); in handleAdvertIn() 317 hdr.scopes, in handleAdvertIn() 337 hdr.scopes, in handleAdvertIn() 349 hdr.scopes, in handleAdvertIn() 355 forwardRegistrations(advert.URL, hdr.scopes, in handleAdvertIn() 366 Vector scopes, in forwardRegistrations() argument 449 Vector sscopes = (Vector)hdr.scopes.clone(); in forwardRegistrations() [all …]
|
H A D | CSrvReg.java | 57 Vector scopes, in CSrvReg() argument 100 scopes, in CSrvReg() 112 Vector scopes, in initialize() argument 121 hdr.scopes = (Vector)scopes.clone(); in initialize() 142 hdr.escapeScopeStrings(scopes); in initialize() 146 hdr.parseCommaSeparatedListOut(scopes, baos); in initialize()
|
H A D | SLPServerHeaderV2.java | 279 hdr.scopes = null; in makeReplyHeader() 302 " scopes=``" + scopes + "''\n" + in toString() 319 scopes = parseCommaSeparatedListIn(buf.toString(), true); in parseScopesIn() 323 unescapeScopeStrings(scopes); in parseScopesIn() 327 DATable.validateScopes(scopes, locale); in parseScopesIn() 349 Vector scopes, in getDAAdvert() argument 356 if (scopes.size() <= 0) { in getDAAdvert() 357 scopes = SLPConfig.getSLPConfig().getSAConfiguredScopes(); in getDAAdvert() 361 return new SDAAdvert(this, xid, timestamp, url, scopes, attrs); in getDAAdvert()
|
H A D | SunDATable.java | 126 synchronized Hashtable findDAScopes(Vector scopes) in findDAScopes() argument 148 Vector multicastScopes = (Vector)scopes.clone(); in findDAScopes() 152 Vector daScopes = (Vector)rec.scopes.clone(); in findDAScopes() 162 filterScopes(daScopes, scopes, false); in findDAScopes() 207 boolean removeDA(InetAddress address, Vector scopes) { in removeDA() argument 253 private Vector getWireTable(Vector scopes, int version) in getWireTable() argument 260 CSrvMsg msg = getSrvReply(scopes, version); in getWireTable() 272 private CSrvMsg getSrvReply(Vector scopes, int version) in getSrvReply() argument 278 int i, n = scopes.size(); in getSrvReply() 284 buf.append((String)scopes.elementAt(i)); in getSrvReply()
|
H A D | CSrvMsg.java | 115 Vector scopes, in CSrvMsg() argument 119 this.initialize(locale, serviceType, scopes, query); in CSrvMsg() 128 Vector scopes, in initialize() argument 134 hdr.scopes = (Vector)scopes.clone(); in initialize() 146 hdr.escapeScopeStrings(scopes); in initialize() 164 hdr.parseCommaSeparatedListOut(scopes, baos); in initialize()
|
H A D | SLPV1CDAAdvert.java | 105 hdr.scopes = hdr.parseCommaSeparatedListIn(buf.toString(), true); in initialize() 109 int i, n = hdr.scopes.size(); in initialize() 112 String scope = (String)hdr.scopes.elementAt(i); in initialize() 115 hdr.scopes.setElementAt(scope.toLowerCase().trim(), i); in initialize() 127 hdr.scopes.size() == 0) { in initialize() 128 hdr.scopes.addElement(Defaults.DEFAULT_SCOPE); in initialize()
|
H A D | ServiceStoreFactory.java | 382 Vector scopes = null; in deserialize() local 387 scopes = conf.getSAConfiguredScopes(); in deserialize() 391 scopes = (Vector)scopeAttr.getValues(); in deserialize() 396 SLPHeaderV2.unescapeScopeStrings(scopes); in deserialize() 400 DATable.validateScopes(scopes, locale); in deserialize() 413 store.register(url, attrs, scopes, locale, null, null); in deserialize() 416 CSrvReg creg = new CSrvReg(true, locale, url, scopes, in deserialize() 440 Vector scopes = rec.getScopes(); in serialize() local 473 if (scopes.size() > 1 && in serialize() 474 !Defaults.DEFAULT_SCOPE.equals((String)scopes.elementAt(0))) { in serialize() [all …]
|
H A D | Locator.java | 77 Vector scopes) in findServiceTypes() argument 97 Vector scopes, in findServices() argument 126 Vector scopes, in findAttributes() argument 155 Vector scopes, in findAttributes() argument
|
H A D | CSrvTypeMsg.java | 108 CSrvTypeMsg(Locale locale, String na, Vector scopes) in CSrvTypeMsg() argument 114 hdr.scopes = (Vector)scopes.clone(); in CSrvTypeMsg() 151 hdr.escapeScopeStrings(scopes); in CSrvTypeMsg() 155 hdr.parseCommaSeparatedListOut(scopes, baos); in CSrvTypeMsg()
|
H A D | SunServerDATable.java | 114 Vector scopes, in recordNewDA() argument 127 Vector v = (Vector)scopes.clone(); in recordNewDA() 132 new ServiceLocationAttribute(SunDATable.SCOPES_ID, scopes); in recordNewDA() 246 public synchronized boolean removeDA(InetAddress address, Vector scopes) { in removeDA() argument 326 public synchronized Hashtable findDAScopes(Vector scopes) in findDAScopes() argument 331 int i, n = scopes.size(); in findDAScopes() 338 buf.append((String)scopes.elementAt(i)); in findDAScopes() 384 Vector multiScopes = (Vector)scopes.clone(); in findDAScopes()
|
/illumos-gate/usr/src/lib/libslp/clib/ |
H A D | slp_targets.c | 113 char *scopes; member 126 struct scope_targets **scopes; member 140 SLPError slp_new_target_list(slp_handle_impl_t *hp, const char *scopes, in slp_new_target_list() argument 152 for (p = (char *)scopes; p; p++) { in slp_new_target_list() 166 if (!(tl->scopes = calloc(scope_cnt + 1, sizeof (*(tl->scopes))))) { in slp_new_target_list() 172 tl->state = tl->scopes; in slp_new_target_list() 173 if (!(tl->all_scopes = strdup(scopes))) { in slp_new_target_list() 175 free(tl->scopes); free(tl); in slp_new_target_list() 179 if (!(tl->mc_scopes = strdup(scopes))) { in slp_new_target_list() 181 free(tl->scopes); free(tl->all_scopes); free(tl); in slp_new_target_list() [all …]
|
H A D | slp_net.c | 71 const char *scopes; member 126 const char *scopes, SLPBoolean free_target, in slp_uc_tcp_send() argument 163 rqst->scopes = scopes; in slp_uc_tcp_send() 190 const char *scopes) { in slp_uc_udp_send() argument 204 if (make_header(hp, header, scopes) != SLP_OK) in slp_uc_udp_send() 319 hp, ctarg, scopes, SLP_FALSE, slp_get_xid(header)); in slp_uc_udp_send() 332 void slp_mc_send(slp_handle_impl_t *hp, const char *scopes) { in slp_mc_send() argument 345 if (make_header(hp, header, scopes) != SLP_OK) in slp_mc_send() 379 mc_recvmsg(pfd, nfds, hp, scopes, header, &collator, final_to, in slp_mc_send() 467 const char *scopes; in tcp_thread() local [all …]
|
H A D | SAAdvert.c | 39 char **scopes, char **attrs) { in slp_unpackSAAdvert() argument 48 *surl = *scopes = *attrs = NULL; in slp_unpackSAAdvert() 64 if ((err = slp_get_string(reply, len, &off, scopes)) != SLP_OK) { in slp_unpackSAAdvert() 95 if (*scopes) free(*scopes); in slp_unpackSAAdvert()
|
H A D | DAAdvert.c | 37 SLPError slp_unpackDAAdvert(char *reply, char **surl, char **scopes, in slp_unpackDAAdvert() argument 48 *surl = *scopes = *attrs = *spis = NULL; in slp_unpackDAAdvert() 83 if ((err = slp_get_string(reply, len, &off, scopes)) != SLP_OK) { in slp_unpackDAAdvert() 122 if (*scopes) free (*scopes); in slp_unpackDAAdvert()
|