X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fsession.h;h=0182add1431283fa58a81b6b7ad871dcb38d935e;hp=a2167bbd73c46eb4fe4c27571cde47a069c4b31d;hb=3e11596504862f376b7340848715d6f549864660;hpb=88d3bedf772316f87e1996f655ccf8d1e2589755 diff --git a/src/session.h b/src/session.h index a2167bb..0182add 100644 --- a/src/session.h +++ b/src/session.h @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2010 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; @@ -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);