pike.git / src / modules / Yp / module.pmod.in

version» Context lines:

pike.git/src/modules/Yp/module.pmod.in:32:    //! @tt{passwd@} instead of just @tt{passwd.byname@}.    //!    //! If @[domain] is not specified, the default domain will be used.    //!    //! @note    //! If there is no YP server available for the domain, this    //! function call will block until there is one. If no server appears    //! in about ten minutes or so, an error will be returned. The timeout    //! is not configurable.    //! -  void create(string map, string|void domain) +  protected void create(string map, string|void domain)    {    if (domain) {    this::domain = Domain(domain);    } else {    this::domain = Domain();    }    ypmap = map;    array err;    do {    // Force an error if the map does not exist.
pike.git/src/modules/Yp/module.pmod.in:62:    //! will be returned, otherwise the string matching the key will    //! be returned.    //!    //! @note    //! @[key] must match exactly, no pattern matching of any kind is done.    //!    string match(string key)    {    return(domain->match(ypmap, key));    } -  string `[](string key) +  protected string `[](string key)    {    return(domain->match(ypmap, key));    }       //! Returns the whole map as a mapping.    mapping(string:string) all()    {    return(domain->all(ypmap));    }   
pike.git/src/modules/Yp/module.pmod.in:103:    return(domain->server(ypmap));    }       //! Return the order number for this map.    int order()    {    return(domain->order(ypmap));    }       //! Return the number of entries in this map. -  int _sizeof() +  protected int _sizeof()    {    return(sizeof(indices(domain->all(ypmap))));    }       //! Return the keys of the map. -  array(string) _indices() +  protected array(string) _indices()    {    return(indices(domain->all(ypmap)));    }       //! Return the values of the map. -  array(string) _values() +  protected array(string) _values()    {    return(values(domain->all(ypmap)));    }       //! Convert the map to a mapping    protected mapping cast(string type)    {    if( type=="mapping" )    return cast_to_mapping();    return UNDEFINED;    }   }      #endif