X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fsession.h;h=e5343ff883fb9e7095f7676abbd97a42db20a756;hp=faa860151ce493e477a6b43f88bdbc7530243464;hb=643f3c67b24a03ea12d0d3420d78a734aedf5b1d;hpb=ee6ab2ee3a9ee1a8c65d7272ec7fba1d886f5af0 diff --git a/src/session.h b/src/session.h index faa8601..e5343ff 100644 --- a/src/session.h +++ b/src/session.h @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2008 Index Data. + * Copyright (C) 1995-2009 Index Data. * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -98,8 +98,8 @@ typedef struct request_q */ typedef enum { - ASSOC_NEW, /* not initialized yet */ - ASSOC_UP, /* normal operation */ + ASSOC_NEW, /* not initialized yet or HTTP session */ + ASSOC_UP, /* Z39.50 session is UP */ ASSOC_DEAD /* dead. Close if input arrives */ } association_state; @@ -122,8 +122,8 @@ typedef struct association association_state state; /* session parameters */ - int preferredMessageSize; - int maximumRecordSize; + Odr_int preferredMessageSize; + Odr_int maximumRecordSize; int version; /* highest version-bit set (2 or 3) */ unsigned cs_get_mask; @@ -160,6 +160,7 @@ int ir_read(IOCHAN h, int event); /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab