X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=zoom%2Fzoom-ka.c;h=361d213215c30ccae711fb6b9ab4e3348bf8cc76;hp=83252b37b1e8324563993dad267a0558cd96b851;hb=50fbdc0bbd17afe2fd8f128330dc313700593d78;hpb=87fdb8465b6f9a7e90a022de67e9dbbb57c4c5c9 diff --git a/zoom/zoom-ka.c b/zoom/zoom-ka.c index 83252b3..361d213 100644 --- a/zoom/zoom-ka.c +++ b/zoom/zoom-ka.c @@ -1,8 +1,7 @@ -/* $Id: zoom-ka.c,v 1.1 2006-09-19 19:41:32 adam Exp $ */ - -/** \file zoom-ka.c - \brief Test ZOOM Keepalive / reconnect -*/ +/* This file is part of the YAZ toolkit. + * Copyright (C) Index Data + * See the file LICENSE for details. + */ #include #include @@ -19,7 +18,7 @@ int main(int argc, char **argv) ZOOM_connection z; ZOOM_options o = ZOOM_options_create (); const char *errmsg, *addinfo; - + if (argc != 4) { fprintf (stderr, "usage:\nzoom-ka sleepinterval target query\n"); @@ -36,7 +35,7 @@ int main(int argc, char **argv) ZOOM_resultset rset; ZOOM_connection_connect (z, argv[2], 0); rset = ZOOM_connection_search_pqf(z, argv[3]); - + while ((i = ZOOM_event(1, &z))) { printf ("no = %d event = %d\n", i-1, @@ -57,6 +56,7 @@ int main(int argc, char **argv) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab