YaST2 Developers Documentation: SLP Browser / Agent

SLP Browser / Agent

modules/SLP.ycp
Access to SLP Agent functions

This module has an unstable interface.

Imports

  • HTML
  • Summary

Global Functions

global FindSrvs (string pcServiceType, string pcScopeList) -> list<map>

Issue the query for services

Parameters:
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".
pcScopeList comma separated list of scope names to search for service types.
Return value:
List of Services
global FindSrvTypes (string pcNamingAuthority, string pcScopeList) -> list<string>

Issues an SLP service type request for service types in the scopes indicated by the pcScopeList.

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.

Parameters:
pcNamingAuthority The naming authority to search.
pcScopeList comma separated list of scope names to search for service types.
Return value:
Service Types
global FindAttrs (string pcURLOrServiceType) -> list<string>

Find attributes of a service

Parameters:
pcURLOrServiceType service url or type
Return value:
attributes
global GetAttrMap (string pcURLOrServiceType) -> map<string,string>

Find attributes of a service and return a map

Parameters:
pcURLOrServiceType service url or type
Return value:
attributes
global AttrSummary (list<string> Attrs) -> string

Attribute summary

Parameters:
Attrs attribute list
Return value:
summary
global Reg (string service) -> boolean

Register service with SLP

Parameters:
service Service to be registered
Return value:
True on success
global DeReg (string service) -> boolean

Deregister service with SLP

Parameters:
service Service to be deregistered
Return value:
True on success
global RegFile (string service, map<string,string> attr, string regfile) -> boolean

Register service with SLP using a reg file

Parameters:
service The service to be registered
attr Attributes
regfile Reg File
Return value:
True on Success
global DeRegFile (string regfile) -> boolean

De-Register service with SLP by removing the reg file

Parameters:
regfile The service to be deregistered
Return value:
True on success
global MatchType (string match) -> list<map>

Match Srv Type and return all data

Parameters:
match match string
Return value:
list of services matching with all relevant data