[Openslp-users] OpenSLP API Question
Brought to you by:
jcalcote
From: Wang, R. <Ren...@nu...> - 2012-09-10 14:02:54
|
I wonder how to use the SLPFindSrvs API with a filter. I registered a service with the following sample code: SLPReg( hslp, "service:drc://10.16.4.157:2921", SLP_LIFETIME_MAXIMUM, 0, "(userID=user1),(appID=2222222)", SLP_TRUE, slpRegCallback, &callback_err ); When I try to use the same filter with two attributes, "(userID=user1),(appID=2222222)", to search the service, it will fail. SLPFindSrvs ( hslp, "service:drc", "default", "(userID=user1),(appID=2222222)", slpSrvURLCallback, &callback_err ); But, when I only specify a single attribute, it works, E.g. SLPFindSrvs ( hslp, "service:drc", "default", "(userID=user1)", slpSrvURLCallback, &callback_err ); Or SLPFindSrvs ( hslp, "service:drc", "default", "(appID=2222222)", slpSrvURLCallback, &callback_err ); I would like know if it is code error or it is the limitation of the OpenSLP? Regards, Ren |