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
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Openslp-users mailing list
Openslp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openslp-users