X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=server%2Fsession.h;h=48129f90ad3762cb7a9c2eb4034629ef35a950c5;hb=d09e17f371431d3397588e6b749219608d37766a;hp=abb3c6055a91999a5851ec264002ffaaf1a93e84;hpb=99268f722648e84bf5c54eb685a1434e100f38a1;p=yaz-moved-to-github.git diff --git a/server/session.h b/server/session.h index abb3c60..48129f9 100644 --- a/server/session.h +++ b/server/session.h @@ -4,7 +4,16 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: session.h,v $ - * Revision 1.7 1995-05-16 08:51:08 quinn + * Revision 1.10 1995-08-29 11:18:01 quinn + * Added code to receive close + * + * Revision 1.9 1995/06/16 10:31:38 quinn + * Added session timeout. + * + * Revision 1.8 1995/05/17 08:42:28 quinn + * Transfer auth info to backend. Allow backend to reject init gracefully. + * + * Revision 1.7 1995/05/16 08:51:08 quinn * License, documentation, and memory fixes * * Revision 1.6 1995/05/15 11:56:41 quinn @@ -36,6 +45,7 @@ #include #include #include +#include #include typedef struct request @@ -84,10 +94,17 @@ typedef struct association void *backend; /* backend handle */ request_q incoming; /* Q of incoming PDUs */ request_q outgoing; /* Q of outgoing data buffers (enc. PDUs) */ + enum + { + ASSOC_NEW, /* not initialized yet */ + ASSOC_UP, /* normal operation */ + ASSOC_DEAD /* dead. Close if input arrives */ + } state; /* session parameters */ int preferredMessageSize; int maximumRecordSize; + int version; /* highest version-bit set (2 or 3) */ } association; association *create_association(IOCHAN channel, COMSTACK link);