I suspect this may be a bug in openslp, but I haven't tried to recreate
this myself. Whenever I've needed to filter based on attribute, it was
always a single attribute.
--Nick
On Mon, Sep 10, 2012 at 9:02 AM, Wang, Ren <ren.w...@nuance.com> wrote:
> 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
>
>
------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Openslp-users mailing list
Openslp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openslp-users