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

version» Context lines:

pike.git/lib/modules/Protocols.pmod/DNS.pmod:1: - // $Id: DNS.pmod,v 1.77 2003/07/30 15:18:08 anders Exp $ + // $Id: DNS.pmod,v 1.78 2003/08/05 18:04:35 nilsson Exp $   // Not yet finished -- Fredrik Hubinette      //! Domain Name System   //! RFC 1035      #pike __REAL_VERSION__      constant NOERROR=0;   constant FORMERR=1;   constant SERVFAIL=2;
pike.git/lib/modules/Protocols.pmod/DNS.pmod:1246:   async_client global_async_client;      #define GAC(X) \   void async_##X( string host, function callback, mixed ... args ) \   { \    if( !global_async_client ) \    global_async_client = async_client(); \    global_async_client->X(host,callback,@args); \   }    + //! @ignore   GAC(ip_to_host); - //! method void async_ip_to_host(string ip, function cb, mixed ... cba) + //! @endignore + //! @decl void async_ip_to_host(string ip, function cb, mixed ... cba)    -  + //! @ignore   GAC(host_to_ip); - //! method void async_host_to_ip(string host, function cb, mixed ... cba) + //! @endignore + //! @decl void async_host_to_ip(string host, function cb, mixed ... cba)    -  + //! @ignore   GAC(get_mx_all); - //! method void async_get_mx_all(string host, function cb, mixed ... cba) + //! @endignore + //! @decl void async_get_mx_all(string host, function cb, mixed ... cba)    -  + //! @ignore   GAC(get_mx); - //! method void async_get_mx(string host, function cb, mixed ... cba) + //! @endignore + //! @decl void async_get_mx(string host, function cb, mixed ... cba)         client global_client;      #define GC(X) \   mixed X( string host ) \   { \    if( !global_client ) \    global_client = client(); \    return global_client->X(host); \   }    -  + //! @ignore   GC(gethostbyname); - //! method array gethostbyname(string host) + //! @endignore + //! @decl array gethostbyname(string host)    -  + //! @ignore   GC(gethostbyaddr); - //! method array gethostbyaddr(string host) + //! @endignore + //! @decl array gethostbyaddr(string host)    -  + //! @ignore   GC(get_mx); - //! method string get_mx(string host) + //! @endignore + //! @decl string get_mx(string host)    -  + //! @ignore   GC(get_primary_mx); - //! method string get_primary_mx(string host) + //! @endignore + //! @decl string get_primary_mx(string host)