X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fsession.h;h=f16d259dac142126454a75ef0ce9934b4a5ada7a;hp=b9e4c2f038528f37b6b25f78e1cf3b4253e72286;hb=48b7a077523d1a86c16c9f536c56d6439fe90f42;hpb=f00d2bb50f84184c7682bd31a5361648a909f9f6 diff --git a/src/session.h b/src/session.h index b9e4c2f..f16d259 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-2012 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; @@ -80,7 +81,7 @@ typedef struct request void *clientData; struct request *next; - struct request_q *q; + struct request_q *q; } request; typedef struct request_q @@ -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);