dispatch_test.c revision 6dcde6ca366549264b23e191ff01162f9dd03350
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * Copyright (C) 1998-2000 Internet Software Consortium.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * Permission to use, copy, modify, and distribute this software for any
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * purpose with or without fee is hereby granted, provided that the above
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * copyright notice and this permission notice appear in all copies.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedytypedef struct {
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyclictx_t clients[NCLIENTS]; /* Lots of things might want to use this. */
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyunsigned int client_count = 0;
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * Forward declarations.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy isc_buffer_init(&textbuf, text, sizeof text);
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy result = dns_message_totext(msg, 0, &textbuf);
unsigned int len;
isc_region_t r;
isc_buffer_remainingregion(b, &r);
(void)task;
#ifdef ISC_PLATFORM_HAVESALEN
&target);
client_count++;
unsigned int cnt;
(void)task;
client_count--;
if (cnt == 0)
client_count--;
if (cnt == 0)
unsigned int cnt;
client_count--;
if (cnt == 0)
== ISC_R_SUCCESS);
unsigned int attrs;
== ISC_R_SUCCESS);
attrs = 0;
== ISC_R_SUCCESS);
for (i = 0 ; i < NCLIENTS ; i++)
&clients[i],
== ISC_R_SUCCESS);
client_count++;
isc_app_run();