|
SLPAttrCallbackDeclarationtypedef SLPBoolean SLPAttrCallback( SLPHandle hslp,const char* attrlist, SLPError errcode, void* cookie ) DescriptionThe SLPAttrCallback type is the type of the callback function passed as a parameter to the SLPFindAttrs() function. The behavior of the library is differs depending on whether the attribute request was by Service URL or by service type.If the SLPFindAttrs() function was called with a Service URL, then the callback is called once regardless of whether the handle was opened asynchronously or synchronously. The attrlist parameter will contain a comma separated list of attributes. If the SLPFindAttrs() function was called with a service type, then the callback called is until no more results are available. The attrlist parameter will contain a comma separated list of attributes. Returns will be collated to remove duplicates if SLPFindAttrs() was called synchronously. If it was called asynchronously the attrlist may return duplicates. ParametersReturnsThe callback should return SLP_TRUE if more data is desired. The callback may continue to return SLP_TRUE until it is called with an errcode of SLP_LAST_CALL. If no more data is requested the callback should return SLP_FALSE.. Since discovery of attributes by service-type is not supported, there is really no reason to return anything but SLP_FALSE from the SLPAttrCallback().Status
See AlsoSyntax, Callbacks |