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

version» Context lines:

pike.git/src/modules/Yp/module.pmod.in:1:   /* -  * $Id: module.pmod.in,v 1.13 2001/01/05 21:38:10 nilsson Exp $ +  * $Id: module.pmod.in,v 1.14 2001/04/26 14:13:09 grubba Exp $    *    * YP (NIS) Functionality for Pike    *    * Per Hedbor & Henrik Grubbström 1996-1997    */      #pike __REAL_VERSION__   inherit @module@;      #if constant(@module@.Domain)
pike.git/src/modules/Yp/module.pmod.in:16:    "passwd":"passwd.byname",    "group":"group.byname",    "networks":"networks.byaddr",    "hosts":"hosts.byname",    "protocols":"protocols.bynumber",    "services":"services.byname",    "aliases":"mail.aliases",    "ethers":"ethers.byname"   ]);    + //! Network Information Service aka YP map.   class Map {    object(Domain) domain;    string ypmap;       //! Create a new YP-map object.    //!    //! @[map] is the YP-map to bind to. This may be a nickname, such as -  //! @tt{passwd} instead of just @tt{passwd.byname}. +  //! @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)
pike.git/src/modules/Yp/module.pmod.in:130:    mixed cast(string type)    {    switch(type) {    case "mapping":    return(cast_to_mapping());    default:    throw(({ "Yp.YpDomain: Cast to " + type + " not supported.\n",    backtrace() }));    }    } - }; + }      #endif