pike.git / lib / modules / Geography.pmod / GeoIP.pmod

version» Context lines:

pike.git/lib/modules/Geography.pmod/GeoIP.pmod:61:    //!    //! Objects of this class can either be created from a file    //! @expr{file_name@} with an optional parsing function @expr{fun@}.    //! When @expr{fun@} is omitted, it defaults to    //! @[Geography.GeoIP.parse_maxmind]. @expr{fun@} will be called for each line in    //! @expr{file_name@} and the critbit tree to add the entry to.    //!    //! Alternatively, an instance of @[ADT.CritBit.IPv4Tree] can be passed.    //! @expr{tree@} is expected to map the first address of each range to    //! its geographical location. -  void create(string|object file_name, void|function(string,object:void) parse_line) { +  protected void create(string|object file_name, +  void|function(string,object:void) parse_line) {    if (objectp(file_name)) {    tree = file_name;    return;    }    tree = ADT.CritBit.IPv4Tree();    parse(file_name, parse_line||parse_maxmind);    }   }