pike.git / lib / modules / Protocols.pmod / DNS_SD.pmod

version» Context lines:

pike.git/lib/modules/Protocols.pmod/DNS_SD.pmod:93: Inside #if constant(_Protocols_DNS_SD.Service)
   //! in the object returned when you register the service.    //!    //! @example    //! object svc = Protocols.DNS_SD.Service(    //! "Company Intranet Forum", // name    //! "_http._tcp", // service type    //! "", // domain (default)    //! 80, // port    //! ({ "path=/forum/" }) // TXT record    //! ); -  void create(string name, string service, string domain, int port, +  protected void create(string name, string service, string domain, int port,    void|string|array(string) txt)    {    if (name)    name = clip_utf8_str(name, 63);       // Pack array of text message records    string txt_flat = get_flat_txt_record(txt);       // Invoke C code    ::create(name || "", service, domain || "", port, txt_flat || "");    }      };   #endif