Branch: Tag:

2005-01-03

2005-01-03 12:50:09 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Disabled some debug.

Rev: lib/modules/Protocols.pmod/DNS.pmod:1.85

1: - // $Id: DNS.pmod,v 1.84 2005/01/03 11:07:28 grubba Exp $ + // $Id: DNS.pmod,v 1.85 2005/01/03 12:50:09 grubba Exp $   // Not yet finished -- Fredrik Hubinette      //! Domain Name System
564:    port = 53;    if(!udp::bind(port))    error("DNS: failed to bind port "+port+".\n"); + #if 0    werror("Protocols.DNS.server(%O)\n"    "UDP Address: %s\n"    "%s\n", port, udp::query_address(),    describe_backtrace(backtrace())); -  + #endif /* 0 */    udp::set_read_callback(rec_data);    }   
812:    {    object udp = Stdio.UDP();    udp->bind(0); + #if 0    werror("Protocols.DNS.client()->do_sync_query(%O)\n"    "UDP Address: %s\n"    "%s\n", s, udp->query_address(), describe_backtrace(backtrace())); -  + #endif /* 0 */    mapping m;    int i;    for (i=0; i < RETRIES; i++) {
1274:    {    if(!udp::bind(0))    error( "DNS: failed to bind a port.\n" ); + #if 0    werror("Protocols.DNS.async_client(%O, %O)\n"    "UDP Address: %s\n"    "%s\n", server, domain, udp::query_address(),    describe_backtrace(backtrace())); -  + #endif /* 0 */       udp::set_read_callback(rec_data);    ::create(server,domain);