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

version» Context lines:

pike.git/lib/modules/Protocols.pmod/DNS.pmod:360:    if(stringp(domain))    domains = ({ domain });       }    }          // Warning: NO TIMEOUT    mapping do_sync_query(string s)    { -  object udp=spider.dumUDP(); +  object udp=Stdio.UDP();    udp->bind(0);    udp->send(nameservers[0],53,s);    mapping m;    do {    m=udp->read();    } while (m->port != 53 ||    m->ip != nameservers[0] ||    m->data[0..1]!=s[0..1]);    return decode_res(m->data);    }
pike.git/lib/modules/Protocols.pmod/DNS.pmod:476:   }      #define RETRIES 12   #define RETRY_DELAY 5   #define REMOVE_DELAY 120   #define GIVE_UP_DELAY (RETRIES * RETRY_DELAY + REMOVE_DELAY)*2      class async_client   {    inherit client; -  inherit spider.dumUDP : udp; +  inherit Stdio.UDP : udp;    async_client next_client;       class Request    {    string req;    string domain;    function callback;    int retries;    int timestamp;    mixed *args;