* Sebastian Hammer, Adam Dickmeiss
*
* $Log: client.c,v $
- * Revision 1.4 1995-05-22 15:30:13 adam
+ * Revision 1.7 1995-06-02 09:50:09 quinn
+ * Smallish.
+ *
+ * Revision 1.6 1995/05/31 08:29:21 quinn
+ * Nothing significant.
+ *
+ * Revision 1.5 1995/05/29 08:10:47 quinn
+ * Moved oid.c to util.
+ *
+ * Revision 1.4 1995/05/22 15:30:13 adam
* Client uses prefix query notation.
*
* Revision 1.3 1995/05/22 15:06:53 quinn
#endif
#include <proto.h>
-#include <oid.h>
#include <marcdisp.h>
ODR_MASK_SET(req->options, Z_Options_search);
ODR_MASK_SET(req->options, Z_Options_present);
- ODR_MASK_SET(req->protocolVersion, 0);
- ODR_MASK_SET(req->protocolVersion, 1);
- ODR_MASK_SET(req->protocolVersion, 2);
+ ODR_MASK_SET(req->protocolVersion, Z_ProtocolVersion_1);
+ ODR_MASK_SET(req->protocolVersion, Z_ProtocolVersion_2);
req->idAuthentication = auth;
fprintf(stderr, "Bad type: %s\n", type);
return 0;
}
- if (!(conn = cs_create(t, 1, CS_Z3950)))
+ if (!(conn = cs_create(t, 1, protocol)))
{
perror("cs_create");
return 0;
conn = 0;
return 0;
}
- printf("Ok!\n");
+ printf("Ok.\n");
send_initRequest();
return 2;
}
static void initialize(void)
{
+#ifdef RPN_QUERY
+#ifndef PREFIX_QUERY
FILE *inf;
+#endif
+#endif
if (!(out = odr_createmem(ODR_ENCODE)) ||
!(in = odr_createmem(ODR_DECODE)) ||