Home
last modified time | relevance | path

Searched refs:surl (Results 1 – 22 of 22) sorted by relevance

/illumos-gate/usr/src/lib/libslp/clib/
H A DSLPParseSrvURL.c57 SLPSrvURL *surl; in SLPParseSrvURL() local
68 if (!(surl = malloc(sizeof (*surl)))) { in SLPParseSrvURL()
72 *ppSrvURL = surl; in SLPParseSrvURL()
73 surl->s_pcSrvType = ""; in SLPParseSrvURL()
74 surl->s_pcNetFamily = ""; in SLPParseSrvURL()
75 surl->s_pcHost = ""; in SLPParseSrvURL()
76 surl->s_iPort = 0; in SLPParseSrvURL()
77 surl->s_pcSrvPart = ""; in SLPParseSrvURL()
90 surl->s_pcSrvType = q; in SLPParseSrvURL()
99 surl->s_pcNetFamily = p; /* may be \0 */ in SLPParseSrvURL()
[all …]
H A DSLPFindSrvs.c33 char *surl; member
224 char *surl, *scopes, *attrs, *spis; in unpackDAAdvert_srv() local
239 if (slp_unpackDAAdvert(reply, &surl, &scopes, &attrs, &spis, &errCode) in unpackDAAdvert_srv()
248 surl = collate_surls(surl, 0, collator); in unpackDAAdvert_srv()
249 if (!surl) { in unpackDAAdvert_srv()
255 cont = cb((SLPHandle)hp, surl, 0, errCode, cookie); in unpackDAAdvert_srv()
259 free(surl); in unpackDAAdvert_srv()
282 char *surl, *scopes, *attrs; in unpackSAAdvert_srv() local
297 if (slp_unpackSAAdvert(reply, &surl, &scopes, &attrs) != SLP_OK) { in unpackSAAdvert_srv()
302 surl = collate_surls(surl, 0, collator); in unpackSAAdvert_srv()
[all …]
H A DSAAdvert.c38 SLPError slp_unpackSAAdvert(char *reply, char **surl, in slp_unpackSAAdvert() argument
48 *surl = *scopes = *attrs = NULL; in slp_unpackSAAdvert()
56 if ((err = slp_get_string(reply, len, &off, surl)) != SLP_OK) { in slp_unpackSAAdvert()
94 if (*surl) free(*surl); in slp_unpackSAAdvert()
H A DDAAdvert.c37 SLPError slp_unpackDAAdvert(char *reply, char **surl, char **scopes, in slp_unpackDAAdvert() argument
48 *surl = *scopes = *attrs = *spis = NULL; in slp_unpackDAAdvert()
75 if ((err = slp_get_string(reply, len, &off, surl)) != SLP_OK) { in slp_unpackDAAdvert()
121 if (*surl) free (*surl); in slp_unpackDAAdvert()
H A DSLPUtils.c281 char *surl, *scopes, *attrs; in unpackSAAdvert_scope() local
292 if (slp_unpackSAAdvert(reply, &surl, &scopes, &attrs) != SLP_OK) { in unpackSAAdvert_scope()
301 free(surl); in unpackSAAdvert_scope()
355 SLPSrvURL *surl; in collate_scopes() local
369 if (SLPParseSrvURL(url, &surl) != SLP_OK) in collate_scopes()
374 if (!(p = strchr(surl->s_pcSrvPart, '='))) { in collate_scopes()
375 free(surl); in collate_scopes()
390 free(surl); in collate_scopes()
403 free(surl); in collate_scopes()
H A Dslp_targets.c470 SLPSrvURL *surl = NULL; in collect_DAs() local
486 if (SLPParseSrvURL(url, &surl) != SLP_OK) { in collect_DAs()
491 if (slp_surl2sin(surl, sin) != SLP_OK) { in collect_DAs()
507 if (!(sscopes = slp_utf_strchr(surl->s_pcSrvPart, '='))) { in collect_DAs()
522 free(surl); in collect_DAs()
544 if (surl) free(surl); in collect_DAs()
H A DSLPFindAttrs.c196 char *surl, *scopes, *attrs, *spis; in unpackDAAdvert_attr() local
215 if (slp_unpackDAAdvert(reply, &surl, &scopes, &attrs, &spis, &errCode) in unpackDAAdvert_attr()
233 free(surl); in unpackDAAdvert_attr()
253 char *surl, *scopes, *attrs; in unpackSAAdvert_attr() local
271 if (slp_unpackSAAdvert(reply, &surl, &scopes, &attrs) != SLP_OK) { in unpackSAAdvert_attr()
285 free(surl); in unpackSAAdvert_attr()
H A Dslp_net_utils.c332 SLPError slp_surl2sin(SLPSrvURL *surl, struct sockaddr_in *sa) { in slp_surl2sin() argument
335 if (slp_pton(surl->s_pcHost, &(sin->sin_addr)) < 1) in slp_surl2sin()
340 (surl->s_iPort == 0 ? SLP_PORT : surl->s_iPort)); in slp_surl2sin()
/illumos-gate/usr/src/lib/libslp/javalib/com/sun/slp/
H A DServiceTable.java287 ServiceURL surl = rec.getServiceURL(); in registerStore() local
304 surl, in registerStore()
336 store.register(surl, attrs, scopes, locale, urlSig, attrSig); in registerStore()
342 if (surl.getIsPermanent()) { in registerStore()
343 pregTable.reg(surl, creg); in registerStore()
354 surl.getServiceType(), in registerStore()
355 surl, in registerStore()
367 surl, in registerStore()
376 surl, in registerStore()
473 ServiceURL surl = rec.getServiceURL(); in ageStore() local
[all …]
H A DServiceURL.java239 ServiceURL surl = (ServiceURL)obj; in equals() local
242 serviceType.equals(surl.serviceType) && in equals()
243 transport.equals(surl.transport) && in equals()
244 host.equals(surl.host) && in equals()
245 (port == surl.port) && in equals()
246 (noDoubleSlash == surl.noDoubleSlash) && in equals()
247 URLPath.equals(surl.URLPath); in equals()
H A DServiceStoreFactory.java224 String surl = null; in deserialize() local
230 surl = tk.nextToken().trim(); in deserialize()
253 if (surl == null || slifetime == null || slang == null) { in deserialize()
277 url = new ServiceURL(surl, lifetime); in deserialize()
288 surl, in deserialize()
437 String surl = url.toString(); in serialize() local
445 line.append(surl); in serialize()
454 if (!surl.startsWith(Defaults.SERVICE_PREFIX)) { in serialize()
H A DSLPTemplateRegistry.java213 ServiceURL surl = in registerServiceTemplate() local
241 serviceAgent.register(surl, attributes); in registerServiceTemplate()
459 ServiceURL surl = (ServiceURL)results.nextElement(); in findVersionedURL() local
460 String urlPath = surl.getURLPath(); in findVersionedURL()
503 turl = surl; in findVersionedURL()
522 turl = surl; in findVersionedURL()
H A DSSrvMsg.java175 ServiceURL surl = (ServiceURL)en.nextElement(); in makeReply() local
179 auth = (Hashtable)URLSignatures.get(surl); in makeReply()
188 authDesc + " " + surl.toString() + ": " + in makeReply()
197 if (hdr.parseServiceURLOut(surl, in makeReply()
H A DCSrvMsg.java89 ServiceURL surl = in parseServiceURLsIn() local
93 serviceURLs.addElement(surl); in parseServiceURLsIn()
98 Hashtable auth = (Hashtable) URLSignatures.get(surl); in parseServiceURLsIn()
H A DServiceStoreInMemory.java87 ServiceURL surl = rec.getServiceURL(); in setReturn() local
91 if (services.get(surl) == null) { in setReturn()
105 new ServiceURL(surl.toString(), (int)lifetime); in setReturn()
107 services.put(surl, s); in setReturn()
1107 ServiceRecordInMemory(ServiceURL surl, Vector alist, in ServiceRecordInMemory() argument
1114 Assert.nonNullParameter(surl, "surl"); in ServiceRecordInMemory()
1119 serviceURL = surl; in ServiceRecordInMemory()
2427 ServiceURL surl = rec.getServiceURL(); in registerInternal() local
2428 ServiceType type = surl.getServiceType(); in registerInternal()
2450 initializeURLScopeLangTableVector(surl, scope, lang); in registerInternal()
[all …]
H A DSSAAdvert.java106 String surl = url.toString(); in initialize() local
110 byte[] urlBytes = hdr.putString(surl, baos); in initialize()
H A DSLPV1SSrvMsg.java261 ServiceURL surl = (ServiceURL)en.nextElement(); in makeReply() local
265 ServiceType type = surl.getServiceType(); in makeReply()
268 urls.addElement(surl); in makeReply()
287 ServiceURL surl = (ServiceURL)en.nextElement(); in makeReply() local
289 hdr.parseServiceURLOut(surl, true, baos); in makeReply()
H A DCDAAdvert.java88 String surl = buf.toString(); in initialize() local
151 URL = new ServiceURL(surl, lifetime); in initialize()
H A DSDAAdvert.java127 String surl = url.toString(); in initialize() local
136 byte[] urlBytes = hdr.putString(surl, baos); in initialize()
H A DSLPHeaderV2.java789 parseServiceURLOut(ServiceURL surl, in parseServiceURLOut() argument
804 byte[] bytes = getStringBytes(surl.toString(), Defaults.UTF8); in parseServiceURLOut()
814 putInt(surl.getLifetime(), bbaos); in parseServiceURLOut()
830 auth = getCheckedAuthBlockList(message, surl.getLifetime()); in parseServiceURLOut()
H A DSLPHeaderV1.java716 parseServiceURLOut(ServiceURL surl, in parseServiceURLOut() argument
721 String ssurl = surl.toString(); in parseServiceURLOut()
724 putInt(surl.getLifetime(), baos); in parseServiceURLOut()
/illumos-gate/usr/src/cmd/ldapcachemgr/
H A Dcachemgr_discovery.c307 SLPSrvURL *surl = NULL; in foreach_server() local
320 if ((err = SLPParseSrvURL(url, &surl)) != SLP_OK) { in foreach_server()
331 (void) logit("discovery:\tserver: %s\n", surl->s_pcHost); in foreach_server()
345 cfg->aggregate(cfg->cache_cfg, "_,_xservers_,_", surl->s_pcHost); in foreach_server()
349 if (surl) SLPFree(surl); in foreach_server()