⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 slp.h

📁 SLP协议在linux下的实现。此版本为1.2.1版。官方网站为www.openslp.org
💻 H
📖 第 1 页 / 共 5 页
字号:
/*                                                                         *//* hSLP         The language specific SLPHandle to use for deregistering.  *//*                                                                         *//* pcSrvURL     The SLP Service URL to deregister.  May not be the empty   *//*              string.  May not be NULL. Must conform to SLP Service URL  *//*              syntax or SLP_INVALID_REGISTRATION will be returned.       *//*                                                                         *//* callback     A callback to report the operation completion status.      *//*                                                                         *//* pvCookie     Memory passed to the callback code from the client.  May be*//*              NULL.                                                      *//*                                                                         *//* Returns:     If an error occurs in starting the operation, one of the   *//*              SLPError codes is returned.                                *//*=========================================================================*//*=========================================================================*/SLPEXP SLPError SLPAPI SLPDelAttrs(SLPHandle   hSLP,                     const char  *pcSrvURL,                     const char  *pcAttrs,                     SLPRegReport callback,                     void *pvCookie); /*                                                                         *//* Delete the selected attributes in the locale of the SLPHandle.  The     *//* API library is required to perform the operation in all scopes          *//* obtained through configuration.                                         *//*                                                                         *//* hSLP         The language specific SLPHandle to use for deleting        *//*              attributes.                                                *//*                                                                         *//* pcSrvURL     The SLP Service URL of the advertisement from which the    *//*              attributes should be deleted. May not be the empty string. *//*                                                                         *//* pcAttrs      A comma separated list of attribute ids for the attributes *//*              to deregister.  May not be the empty string.               *//*                                                                         *//* callback     A callback to report the operation completion status.      *//*                                                                         *//* pvCookie     Memory passed to the callback code from the client.  May be*//*              NULL.                                                      *//*                                                                         *//* Returns      If an error occurs in starting the operation, one of the   *//*              SLPError codes is returned.                                *//*=========================================================================*//*=========================================================================*/SLPEXP SLPError SLPAPI SLPFindSrvTypes(SLPHandle    hSLP,                         const char  *pcNamingAuthority,                         const char  *pcScopeList,                         SLPSrvTypeCallback callback,                         void *pvCookie);  /*                                                                         *//* The SLPFindSrvType() function issues an SLP service type request for    *//* service types in the scopes indicated by the pcScopeList.  The          *//* results are returned through the callback parameter.  The service       *//* types are independent of language locale, but only for services         *//* registered in one of scopes and for the indicated naming authority.     *//*                                                                         *//* If the naming authority is "*", then results are returned for all       *//* naming authorities.  If the naming authority is the empty string,       *//* i.e.  "", then the default naming authority, "IANA", is used.  "IANA"   *//* is not a valid naming authority name, and it is a PARAMETER_BAD error   *//* to include it explicitly.                                               *//*                                                                         *//* The service type names are returned with the naming authority intact.   *//* If the naming authority is the default (i.e.  empty string) then it     *//* is omitted, as is the separating ".".  Service type names from URLs     *//* of the service:  scheme are returned with the "service:" prefix         *//* intact.  See RFC 2609 for more information on the syntax of service     *//* type names.                                                             *//*                                                                         *//* hSLP                 The SLPHandle on which to search for types.        *//*                                                                         *//* pcNamingAuthority    The naming authority to search.  Use "*" for all   *//*                      naming authorities and the empty string, "", for   *//*                      the default naming authority.                      *//*                                                                         *//* pcScopeList          A pointer to a string containing comma separated   *//*                      list of scope names to search for service types.   *//*                      May not be the empty string, "".                   *//*                                                                         *//* callback             A callback function through which the results of   *//*                      the operation are reported.                        *//*                                                                         *//* pvCookie             Memory passed to the callback code from the client.*//*                      May be NULL.                                       *//*                                                                         *//* Returns              If an error occurs in starting the operation, one  *//*                      of the SLPError codes is returned.                 *//*=========================================================================*//*=========================================================================*/SLPEXP SLPError SLPAPI SLPFindSrvs(SLPHandle  hSLP,                     const char *pcServiceType,                     const char *pcScopeList,                     const char *pcSearchFilter,                     SLPSrvURLCallback callback,                     void *pvCookie);/*                                                                         *//* Issue the query for services on the language specific SLPHandle and     *//* return the results through the callback.  The parameters determine      *//* the results                                                             *//*                                                                         *//* hSLP             The language specific SLPHandle on which to search for *//*                  services.                                              *//*                                                                         *//* pcServiceType    The Service Type String, including authority string if *//*                  any, for the request, such as can be discovered using  *//*                  SLPSrvTypes(). This could be, for example              *//*                  "service:printer:lpr" or "service:nfs".  May not be    *//*                  the empty string or NULL.                              *//*                                                                         *//*                                                                         *//* pcScopeList      A pointer to a char containing comma separated list of *//*                  scope names.  Pass in the NULL or the empty string ""  *//*                  to find services in all the scopes the local host is   *//*                  configured query.                                      *//*                                                                         *//* pcSearchFilter   A query formulated of attribute pattern matching       *//*                  expressions in the form of a LDAPv3 Search Filter.     *//*                  If this filter is NULL or empty, i.e.  "", all         *//*                  services of the requested type in the specified scopes *//*                  are returned.                                          *//*                                                                         *//* callback         A callback function through which the results of the   *//*                  operation are reported. May not be NULL                *//*                                                                         *//* pvCookie         Memory passed to the callback code from the client.    *//*                  May be NULL.                                           *//*                                                                         *//* Returns:         If an error occurs in starting the operation, one of   *//*                  the SLPError codes is returned.                        *//*                                                                         *//*=========================================================================*//*=========================================================================*/SLPEXP SLPError SLPAPI SLPFindAttrs(SLPHandle   hSLP,                      const char *pcURLOrServiceType,                      const char *pcScopeList,                      const char *pcAttrIds,                      SLPAttrCallback callback,                      void *pvCookie);  /*                                                                         *//* This function returns service attributes matching the attribute ids     *//* for the indicated service URL or service type.  If pcURLOrServiceType   *//* is a service URL, the attribute information returned is for that        *//* particular advertisement in the language locale of the SLPHandle.       *//*                                                                         *//* If pcURLOrServiceType is a service type name (including naming          *//* authority if any), then the attributes for all advertisements of that   *//* service type are returned regardless of the language of registration.   *//* Results are returned through the callback.                              *//*                                                                         *//* The result is filtered with an SLP attribute request filter string      *//* parameter, the syntax of which is described in RFC 2608. If the filter  *//* string is the empty string, i.e.  "", all attributes are returned.      *//*                                                                         *//* hSLP                 The language specific SLPHandle on which to search *//*                      for attributes.                                    *//*                                                                         *//* pcURLOrServiceType   The service URL or service type.  See RFC 2608 for *//*                      URL and service type syntax.  May not be the empty *//*                      string.                                            *//*                                                                         *//* pcScopeList          A pointer to a char containing a comma separated   *//*                      list of scope names. Pass in NULL or the empty     *//*                      string "" to find services in all the scopes the   *//*                      local host is configured query.                    *//*                                                                         *//* pcAttrIds            A comma separated list of attribute ids to return. *//*                      Use NULL or the empty string, "", to indicate all  *//*                      values. Wildcards are not currently supported      *//*                                                                         *//* callback             A callback function through which the results of   *//*                      the operation are reported.                        *//*                                                                         *//* pvCookie             Memory passed to the callback code from the client.*//*                      May be NULL.                                       *//*                                                                         *//* Returns:             If an error occurs in starting the operation, one  *//*                      of the SLPError codes is returned.                 *//*=========================================================================*//*=========================================================================*/SLPEXP unsigned short SLPAPI SLPGetRefreshInterval();/*                                                                         *//* Returns the maximum across all DAs of the min-refresh-interval          *//* attribute.  This value satisfies the advertised refresh interval        *//* bounds for all DAs, and, if used by the SA, assures that no refresh     *//* registration will be rejected.  If no DA advertises a min-refresh-      *//* interval attribute, a value of 0 is returned.                           */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -