X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fsession.h;h=af2d2ee411ce4b61eded8c0b8ab2bdd82c503866;hp=b9e4c2f038528f37b6b25f78e1cf3b4253e72286;hb=3c287bc1d48ee6a1f300054c2cebd0ba312bd5b9;hpb=f00d2bb50f84184c7682bd31a5361648a909f9f6 diff --git a/src/session.h b/src/session.h index b9e4c2f..af2d2ee 100644 --- a/src/session.h +++ b/src/session.h @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2009 Index Data. + * Copyright (C) 1995-2011 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: @@ -43,6 +43,7 @@ struct gfs_server { statserv_options_block cb; char *host; + char *id; int listen_ref; cql_transform_t cql_transform; CCL_bibset ccl_transform; @@ -120,13 +121,13 @@ typedef struct association association_state state; /* session parameters */ - Odr_int preferredMessageSize; - Odr_int maximumRecordSize; + int preferredMessageSize; + int maximumRecordSize; int version; /* highest version-bit set (2 or 3) */ - unsigned cs_get_mask; - unsigned cs_put_mask; - unsigned cs_accept_mask; + int cs_get_mask; + int cs_put_mask; + int cs_accept_mask; struct bend_initrequest *init; statserv_options_block *last_control; @@ -148,8 +149,6 @@ void request_delq(request_q *q); request *request_get(request_q *q); void request_release(request *r); -int statserv_must_terminate(void); - int control_association(association *assoc, const char *host, int force); int ir_read(IOCHAN h, int event);