-/*
- * $Id: zoomtst3.c,v 1.10 2006-04-19 09:05:09 adam Exp $
- *
- * Asynchronous multi-target client doing search and piggyback retrieval
+/* This file is part of the YAZ toolkit.
+ * Copyright (C) 1995-2008 Index Data
+ * See the file LICENSE for details.
*/
#include <stdio.h>
/* network I/O. pass number of connections and array of connections */
while ((i = ZOOM_event (no, z)))
{
- printf ("no = %d event = %d\n", i-1,
+ int peek = ZOOM_connection_peek_event(z[i-1]);
+ printf ("no = %d peek = %d event = %d\n", i-1,
+ peek,
ZOOM_connection_last_event(z[i-1]));
}
{
/* OK, no major errors. Look at the result count */
int pos;
- printf ("%s: %d hits\n", tname, ZOOM_resultset_size(r[i]));
+ printf ("%s: %ld hits\n", tname, (long) ZOOM_resultset_size(r[i]));
/* go through all records at target */
for (pos = 0; pos < 10; pos++)
{