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

version» Context lines:

pike.git/lib/modules/Protocols.pmod/DNS.pmod:2314:    inherit tcp_client : TCP;       //!    mapping do_sync_query(string s)    {    mapping ret = UDP::do_sync_query(s);    if (!ret->tc) return ret;    return TCP::do_sync_query(s);    }    -  void create(mixed ... args) {::create(@args);} +  protected void create(mixed ... args) {::create(@args);}   }      //! Both an @[async_client] and an @[async_tcp_client].   class async_dual_client   {    inherit async_client : UDP;    inherit async_tcp_client : TCP;       void check_truncation(string domain, mapping result, int cl, int type,    function(string,mapping,mixed...:void) callback,
pike.git/lib/modules/Protocols.pmod/DNS.pmod:2340:       //!    Request do_query(string domain, int cl, int type,    function(string,mapping,mixed...:void) callback,    mixed ... args)    {    return UDP::do_query(domain,cl,type,check_truncation,    cl,type,callback,@args);    }    -  void create(mixed ... args) {::create(@args);} +  protected void create(mixed ... args) {::create(@args);}   }         async_client global_async_client;      #define GAC(X) \   async_client.Request async_##X( string host, function callback, mixed ... args ) \   { \    if( !global_async_client ) \    global_async_client = async_client(); \