* Sebastian Hammer, Adam Dickmeiss
*
* $Log: seshigh.c,v $
- * Revision 1.12 1995-03-29 15:40:16 quinn
+ * Revision 1.13 1995-03-30 09:09:24 quinn
+ * Added state-handle and some support for asynchronous activities.
+ *
+ * Revision 1.12 1995/03/29 15:40:16 quinn
* Ongoing work. Statserv is now dynamic by default
*
* Revision 1.11 1995/03/28 09:16:21 quinn
free(h->encode_buffer);
if (h->input_buffer)
free(h->input_buffer);
+ if (h->backend)
+ bend_close(h->backend);
free(h);
}
return -1;
}
+ assoc->backend = binitres->handle;
apdup = &apdu;
apdu.which = Z_APDU_initResponse;
apdu.u.initResponse = &resp;
resp.result = &result;
resp.implementationId = "YAZ";
resp.implementationName = "Index Data/YAZ Generic Frontend Server";
- resp.implementationVersion = "$Revision: 1.12 $";
+ resp.implementationVersion = "$Revision: 1.13 $";
resp.userInformationField = 0;
if (!z_APDU(assoc->encode, &apdup, 0))
{
}
freq.setname = setname;
freq.number = recno;
- if (!(fres = bend_fetch(&freq)))
+ if (!(fres = bend_fetch(a->backend, &freq, 0)))
{
*pres = Z_PRES_FAILURE;
return diagrec(a->proto, 2, "Backend interface problem");
bsrq.basenames = req->databaseNames;
bsrq.query = req->query;
- if (!(bsrt = bend_search(&bsrq)))
+ if (!(bsrt = bend_search(assoc->backend, &bsrq, 0)))
return -1;
else if (bsrt->errcode)
resp.records = diagrec(assoc->proto, bsrt->errcode,
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: session.h,v $
- * Revision 1.2 1995-03-27 08:34:29 quinn
+ * Revision 1.3 1995-03-30 09:09:27 quinn
+ * Added state-handle and some support for asynchronous activities.
+ *
+ * Revision 1.2 1995/03/27 08:34:29 quinn
* Added dynamic server functionality.
* Released bindings to session.c (is now redundant)
*
int input_apdu_len;
int state;
oid_proto proto;
+ void *backend;
#define ASSOC_UNINIT 0
#define ASSOC_IDLE 1