*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->HP-UX 11i man pages -> slp_syntax (7)              
Title
Content
Arch
Section
 

Contents


 slp_syntax(7)                                                 slp_syntax(7)




 NAME    [Toc]    [Back]
      slp_syntax - SLP Service Type Syntax

 DESCRIPTION    [Toc]    [Back]
      The SLP API expects service type information to be passed while
      querying for SLP service information and also while registering and
      deregistering services. The SLP API accepts service type information
      in URL format also.

      The service type string contains the following information.

           Name of the service type.

           Naming Authority responsible for the service name.

      The service type string is of the form:

           service:abstract-type.naming-authority:concrete-type

      The abstract-type is a short descriptive string that describes the
      type of service.

      The naming-authority is the name of the organization that named the
      service. The naming-authority is optional, but if it is omitted, then
      IANA is assumed to be the naming authority and IANA requires servicetypes
 to be registered (see RFC 2609).

      concrete-type, also optional, is a kind of sub-type of the abstracttype.


      For example,

           printer is an abstract type (owned by IANA) and printer:lpr is a
           concrete type (owned by IANA).

      The official definition of Service Type strings can be found in RFC
      2609, "Service Templates and Service Schemes".

    Examples of Service Type Strings    [Toc]    [Back]
      weather.nasa:wtp          A (fictitious) weather service type owned by
                                NASA that uses WTP protocol.

      weather.nasa:swtp         A (fictitious) weather service type owned by
                                NASA that uses SWTP protocol.

      chat.superchat            A chat service type owned by SuperChat.

      printer.samba             A samba printer service type.

      ftp                       An IANA ftp service type.




 Hewlett-Packard Company            - 1 -   HP-UX 11i Version 2: August 2003






 slp_syntax(7)                                                 slp_syntax(7)




      telnet                    An IANA telnet service type.

    Comparing Service Types    [Toc]    [Back]
      Since service types are important in determining the URLs that are
      returned by the SLPFindSrvs() call, you should understand how services
      are compared.  Suppose that three services were registered with
      SLPReg() using a srvtype of printer:lpr, printer and printer.acme.  If
      a client program calls SLPFindSrvs() with a srvtype of
      service:printer, the urls for both printer:lpr and printer are
      returned (printer.acme is not).  However, if SLPFindSrvs() is called
      with srvtype of printer:lpr or printer.acme, then the urls for
      printer:lpr or printer.acme would be returned.  In other words, if a
      concrete-type is used, only services with the same abstract and
      concrete-type are returned.  If only the abstract type is used, then
      all services of that abstract type (and naming authority) are
      returned.

    SLP Service URL Syntax    [Toc]    [Back]
      SLP APIs accept service type strings in URL syntax format.  URL
      strings are passed as parameters to SLPReg(), SLPDeReg(),
      SLPFindSrvs(), and SLPParseSrvURL() functions and returned as a result
      to the SLPSrvURLCallback() callback function.  SLP defines a special
      type of URL called a Service URL that MUST be used when calling SLP
      API functions.  The syntax of a service URL is:

           SLP Service URL = service:service-type://addrspec

      service-type is a service type as explained above.  addrspec can be
      any address that fits URL syntax and can be translated as a network
      location.  The service: and :// strings are required.

    Service URL Examples    [Toc]    [Back]
           service:weather.nasa:wtp://weather.nasa.com:12000
           service:weather.nasa:swtp://weather.nasa.com:12001
           service:chat.superchat://chat.superchat.com;auth=ldap

      SLP requires you to use Service URLs.  API functions will return
      SLP_PARSE_ERROR if you do not.  Service URLs are required because the
      SLP API designers do not allow the service-type to be passed in as a
      parameter to the SLPDeReg() call.  Without the service-type,
      SLPDeReg() does not allow the caller to distinguish between services
      of varying types that were registered with the same standard URL.

      The SLPFindSrvs() function expects the search strings to be passed in
      LDAPv3 Search Filter Syntax.

 SEE ALSO    [Toc]    [Back]
      slpd(1M), libslp(3N), slp.reg(4).


 Hewlett-Packard Company            - 2 -   HP-UX 11i Version 2: August 2003
[ Back ]
      
      
 Similar pages
Name OS Title
iptos Tru64 Defines the IP Type Of Service (TOS) for FTP and Telnet
tt_ptype_declare HP-UX register the process type with the ToolTalk service
font2c Linux Write PostScript Type 0 or Type 1 font as C code
perlsyn IRIX Perl syntax
perlsyn OpenBSD Perl syntax
tcl IRIX Summary of Tcl language syntax.
rpccp_remove_entry HP-UX Removes a name service entry from the name service database
rpccp_add_entry HP-UX Adds a name service entry to the name service database
csh HP-UX a shell (command interpreter) with C-like syntax
popd OpenBSD a shell (command interpreter) with C-like syntax
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service