-/*
- * $Id: zoomtst6.c,v 1.9 2002-02-20 14:40:42 adam Exp $
- *
- * Asynchronous multi-target client doing two searches
- */
+/* $Id: zoomtst6.c,v 1.13 2007-01-03 08:42:17 adam Exp $ */
+
+/** \file zoomtst6.c
+ \brief Asynchronous multi-target client with two searches
+*/
q = ZOOM_query_create ();
if (ZOOM_query_prefix (q, argv[argc-2]))
{
q = ZOOM_query_create ();
if (ZOOM_query_prefix (q, argv[argc-2]))
{
- z[i] = ZOOM_connection_create (o);
- ZOOM_connection_connect (z[i], argv[i+1], 0);
+ z[i] = ZOOM_connection_create (o);
+ ZOOM_connection_connect (z[i], argv[i+1], 0);
r1[i] = ZOOM_connection_search (z[i], q);
}
if (ZOOM_query_prefix (q, argv[argc-1]))
{
r1[i] = ZOOM_connection_search (z[i], q);
}
if (ZOOM_query_prefix (q, argv[argc-1]))
{
- int error;
- const char *errmsg, *addinfo;
- if ((error = ZOOM_connection_error(z[i], &errmsg, &addinfo)))
- fprintf (stderr, "%s error: %s (%d) %s\n",
- ZOOM_connection_option_get(z[i], "host"),
- errmsg, error, addinfo);
- else
- {
- display_records (ZOOM_connection_option_get(z[i], "host"), r1[i]);
- display_records (ZOOM_connection_option_get(z[i], "host"), r2[i]);
- }
+ int error;
+ const char *errmsg, *addinfo;
+ if ((error = ZOOM_connection_error(z[i], &errmsg, &addinfo)))
+ fprintf (stderr, "%s error: %s (%d) %s\n",
+ ZOOM_connection_option_get(z[i], "host"),
+ errmsg, error, addinfo);
+ else
+ {
+ display_records (ZOOM_connection_option_get(z[i], "host"), r1[i]);
+ display_records (ZOOM_connection_option_get(z[i], "host"), r2[i]);
+ }