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

version» Context lines:

pike.git/lib/modules/Protocols.pmod/DNS_SD.pmod:1: - // $Id$ +    // Interface to DNS Service Discovery. Written by Jonas Walldén.    -  +    #pike __REAL_VERSION__      #if constant(_Protocols_DNS_SD.Service)         //! This class provides an interface to DNS Service Discovery. The   //! functionality of DNS-SD is described at <http://www.dns-sd.org/>.   //!   //! Using the Proctocols.DNS_SD.Service class a Pike program can   //! announce services, for example a web site or a database server, to
pike.git/lib/modules/Protocols.pmod/DNS_SD.pmod:43: Inside #if constant(_Protocols_DNS_SD.Service)
   private protected string get_flat_txt_record(void|string|array(string) txt)    {    string txt_flat;       if (txt && stringp(txt))    txt = ({ txt });    if (arrayp(txt) && sizeof(txt)) {    txt_flat = "";    foreach(txt, string entry) {    entry = clip_utf8_str(entry, 255); -  txt_flat += sprintf("%c%s", (int) strlen(entry), entry); +  txt_flat += sprintf("%1H", entry);    }    }    return txt_flat;    }       //! Updates the TXT record for the service.    //!    //! @param txt    //! A TXT record with service-specific information. It can be given as a    //! plain string or an array of property assignment strings. To remove