X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=server%2Fsession.h;h=ab63da362778616dcad9bd49ddea29b5a8f0807c;hb=0aa8e547996dc0adb27cc1e10c25c472585f63cb;hp=bf3fc3e8ac9c13b4d29b9b5d40176289820261b0;hpb=fe5f2da0c0c4ae00864cc72a36714e90405456e4;p=yaz-moved-to-github.git diff --git a/server/session.h b/server/session.h index bf3fc3e..ab63da3 100644 --- a/server/session.h +++ b/server/session.h @@ -1,10 +1,25 @@ /* - * Copyright (C) 1994, Index Data I/S - * All rights reserved. + * Copyright (C) 1995, Index Data I/S + * See the file LICENSE for details. * Sebastian Hammer, Adam Dickmeiss * * $Log: session.h,v $ - * Revision 1.6 1995-05-15 11:56:41 quinn + * Revision 1.11 1995-11-08 17:41:40 quinn + * Smallish. + * + * 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 * Asynchronous facilities. Restructuring of seshigh code. * * Revision 1.5 1995/04/20 15:13:01 quinn @@ -33,6 +48,7 @@ #include #include #include +#include #include typedef struct request @@ -46,7 +62,7 @@ typedef struct request } state; Z_APDU *request; /* Current request */ - ODR_MEM request_mem; /* ODR memory handle for request */ + NMEM request_mem; /* memory handle for request */ int size_response; /* size of buffer */ int len_response; /* length of encoded data */ @@ -81,10 +97,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);