|
YAZ 5.37.0
|
Implements GFS session logic. More...
#include <limits.h>#include <stdlib.h>#include <stdio.h>#include <assert.h>#include <libxml/parser.h>#include <libxml/tree.h>#include <yaz/facet.h>#include <yaz/xmalloc.h>#include <yaz/comstack.h>#include "eventl.h"#include "session.h"#include "mime.h"#include <yaz/proto.h>#include <yaz/oid_db.h>#include <yaz/log.h>#include <yaz/logrpn.h>#include <yaz/querytowrbuf.h>#include <yaz/statserv.h>#include <yaz/diagbib1.h>#include <yaz/charneg.h>#include <yaz/otherinfo.h>#include <yaz/yaz-util.h>#include <yaz/pquery.h>#include <yaz/query-charset.h>#include <yaz/srw.h>#include <yaz/backend.h>#include <yaz/yaz-ccl.h>#include <yaz/snprintf.h>Go to the source code of this file.
Functions | |
| static void | process_gdu_request (association *assoc, request *req) |
| static int | process_z_request (association *assoc, request *req, char **msg) |
| static int | process_gdu_response (association *assoc, request *req, Z_GDU *res) |
| static int | process_z_response (association *assoc, request *req, Z_APDU *res) |
| static Z_APDU * | process_initRequest (association *assoc, request *reqb) |
| static Z_External * | init_diagnostics (ODR odr, int errcode, const char *errstring) |
| static Z_APDU * | process_searchRequest (association *assoc, request *reqb) |
| static Z_APDU * | response_searchRequest (association *assoc, request *reqb, bend_search_rr *bsrr) |
| static Z_APDU * | process_presentRequest (association *assoc, request *reqb) |
| static Z_APDU * | process_scanRequest (association *assoc, request *reqb) |
| static Z_APDU * | process_sortRequest (association *assoc, request *reqb) |
| static void | process_close (association *assoc, request *reqb) |
| static Z_APDU * | process_deleteRequest (association *assoc, request *reqb) |
| static Z_APDU * | process_segmentRequest (association *assoc, request *reqb) |
| static Z_APDU * | process_ESRequest (association *assoc, request *reqb) |
| static void | get_logbits (void) |
| static void | wr_diag (WRBUF w, int error, const char *addinfo) |
| static int | odr_int_to_int (Odr_int v) |
| association * | create_association (IOCHAN channel, COMSTACK link, const char *apdufile) |
| void | destroy_association (association *h) |
| static void | do_close_req (association *a, int reason, char *message, request *req) |
| static void | do_close (association *a, int reason, char *message) |
| int | ir_read (IOCHAN h, int event) |
| void | ir_session (IOCHAN h, int event) |
| static void | assoc_init_reset (association *assoc, const char *peer_name1) |
| static int | srw_bend_init (association *assoc, Z_HTTP_Header *headers, Z_SRW_diagnostic **d, int *num, Z_SRW_PDU *sr) |
| static int | retrieve_fetch (association *assoc, bend_fetch_rr *rr) |
| static int | srw_bend_fetch (association *assoc, int pos, Z_SRW_searchRetrieveRequest *srw_req, Z_SRW_record *record, const char **addinfo, int *last_in_set) |
| static int | cql2pqf (ODR odr, const char *cql, cql_transform_t ct, Z_Query *query_result, char **sortkeys_p) |
| static int | cql2pqf_scan (ODR odr, const char *cql, cql_transform_t ct, Z_AttributesPlusTerm *result) |
| static int | ccl2pqf (ODR odr, const Odr_oct *ccl, CCL_bibset bibset, bend_search_rr *bsrr) |
| static void | srw_bend_search (association *assoc, Z_HTTP_Header *headers, Z_SRW_PDU *sr, Z_SRW_PDU *res, int *http_code) |
| static char * | srw_bend_explain_default (bend_explain_rr *rr) |
| static void | srw_bend_explain (association *assoc, Z_HTTP_Header *headers, Z_SRW_PDU *sr, Z_SRW_explainResponse *srw_res, int *http_code) |
| static void | srw_bend_scan (association *assoc, Z_HTTP_Header *headers, Z_SRW_PDU *sr, Z_SRW_PDU *res, int *http_code) |
| static void | srw_bend_update (association *assoc, Z_HTTP_Header *headers, Z_SRW_PDU *sr, Z_SRW_updateResponse *srw_res, int *http_code) |
| static int | check_path (const char *path) |
| static char * | read_file (const char *fname, ODR o, long *sz) |
| static void | process_http_request (association *assoc, request *req) |
| static char * | get_vhost (Z_OtherInformation *otherInfo) |
| static Z_Records * | diagrec (association *assoc, int error, char *addinfo) |
| static Z_NamePlusRecord * | surrogatediagrec (association *assoc, const char *dbname, int error, const char *addinfo) |
| static Z_Records * | pack_records (association *a, char *setname, Odr_int start, Odr_int *num, Z_RecordComposition *comp, Odr_int *next, Odr_int *pres, Z_ReferenceId *referenceId, Odr_oid *oid, int *errcode) |
| int | bend_assoc_is_alive (bend_association assoc) |
Variables | |
| static int | logbits_set = 0 |
| static int | log_session = 0 |
| static int | log_sessiondetail = 0 |
| static int | log_request = 0 |
| static int | log_requestdetail = 0 |
Implements GFS session logic.
Frontend server logic.
This code receives incoming APDUs, and handles client requests by means of the backend API.
Some of the code is getting quite involved, compared to simpler servers - primarily because it is asynchronous both in the communication with the user and the backend. We think the complexity will pay off in the form of greater flexibility when more asynchronous facilities are implemented.
Memory management has become somewhat involved. In the simple case, where only one PDU is pending at a time, it will simply reuse the same memory, once it has found its working size. When we enable multiple concurrent operations, perhaps even with multiple parallel calls to the backend, it will maintain a pool of buffers for encoding and decoding, trying to minimize memory allocation/deallocation during normal operation.
Definition in file seshigh.c.
|
static |
Definition at line 485 of file seshigh.c.
References bend_initrequest::auth, bend_initrequest::bend_delete, bend_initrequest::bend_esrequest, bend_initrequest::bend_explain, bend_initrequest::bend_fetch, bend_initrequest::bend_present, bend_initrequest::bend_scan, bend_initrequest::bend_search, bend_initrequest::bend_segment, bend_initrequest::bend_sort, bend_initrequest::bend_srw_scan, bend_initrequest::bend_srw_update, bend_initrequest::charneg_request, bend_initrequest::charneg_response, association::client_link, cs_addrstr, association::decode, bend_initrequest::decode, association::encode, bend_initrequest::implementation_id, bend_initrequest::implementation_name, bend_initrequest::implementation_version, association::init, log_requestdetail, bend_initrequest::named_result_sets, odr_malloc(), bend_initrequest::peer_name, association::print, bend_initrequest::print, bend_initrequest::query_charset, bend_initrequest::records_in_same_charset, bend_initrequest::referenceId, bend_initrequest::stream, xfree, xmalloc, and yaz_log().
Referenced by process_initRequest(), and srw_bend_init().
| int bend_assoc_is_alive | ( | bend_association | assoc | ) |
Definition at line 3552 of file seshigh.c.
References ASSOC_DEAD, association::client_chan, iochan_is_alive(), and association::state.
Referenced by check_slow().
|
static |
Definition at line 907 of file seshigh.c.
References odr_oct::buf, ccl_err_msg(), ccl_find_str(), ccl_rpn_query(), bend_search_rr::errstring, odr_oct::len, odr_strdupn(), bend_search_rr::query, Z_Query::type_1, Z_Query::u, Z_Query::which, YAZ_SRW_QUERY_SYNTAX_ERROR, and Z_Query_type_1.
Referenced by process_searchRequest().
|
static |
Definition at line 1748 of file seshigh.c.
Referenced by process_http_request().
|
static |
Definition at line 814 of file seshigh.c.
References cql_parser_create(), cql_parser_destroy(), cql_parser_result(), cql_parser_string(), cql_sortby_to_sortkeys_buf(), cql_transform(), cql_transform_error(), log_requestdetail, odr_strdup(), Z_Query::type_1, Z_Query::u, Z_Query::which, wrbuf_alloc(), wrbuf_cstr(), wrbuf_destroy(), wrbuf_vp_puts(), yaz_log(), yaz_pqf_create(), yaz_pqf_destroy(), yaz_pqf_error(), yaz_pqf_parse(), YAZ_SRW_QUERY_SYNTAX_ERROR, YAZ_SRW_UNSUPP_SORT_TYPE, YLOG_WARN, and Z_Query_type_1.
Referenced by cql2pqf_scan(), process_searchRequest(), and srw_bend_search().
|
static |
Definition at line 883 of file seshigh.c.
References Z_Operand::attributesPlusTerm, cql2pqf(), Z_RPNQuery::RPNStructure, Z_RPNStructure::simple, Z_Query::type_1, Z_Operand::u, Z_Query::u, Z_RPNStructure::u, Z_Operand::which, Z_Query::which, Z_RPNStructure::which, YAZ_SRW_QUERY_SYNTAX_ERROR, Z_Operand_APT, Z_Query_type_1, Z_Query_type_101, and Z_RPNStructure_simple.
Referenced by srw_bend_scan().
| association * create_association | ( | IOCHAN | channel, |
| COMSTACK | link, | ||
| const char * | apdufile ) |
Definition at line 149 of file seshigh.c.
References ASSOC_NEW, association::backend, association::client_chan, association::client_link, association::cs_accept_mask, association::cs_get_mask, cs_getproto, association::cs_put_mask, association::decode, association::encode, get_logbits(), association::incoming, association::init, association::input_buffer, association::input_buffer_len, association::last_control, logbits_set, odr_createmem(), ODR_DECODE, ODR_ENCODE, ODR_PRINT, odr_setprint(), association::outgoing, association::print, association::proto, request_initq(), association::server, association::state, association::version, xmalloc, yaz_log(), yaz_log_file(), yaz_snprintf(), YLOG_ERRNO, and YLOG_WARN.
Referenced by inetd_connection(), and new_session().
| void destroy_association | ( | association * | h | ) |
Definition at line 209 of file seshigh.c.
References association::backend, statserv_options_block::bend_close, association::decode, association::encode, association::incoming, association::init, association::input_buffer, odr_destroy(), association::outgoing, association::print, request_delq(), request_deq(), request_release(), statserv_getcontrol(), xfree, and xmalloc_trav.
Referenced by ir_read(), and ir_session().
|
static |
Definition at line 2497 of file seshigh.c.
References diagbib1_str(), association::encode, log_requestdetail, Z_Records::nonSurrogateDiagnostic, odr_malloc(), Z_Records::u, Z_Records::which, yaz_log(), Z_Records_NSD, and zget_DefaultDiagFormat().
Referenced by pack_records(), process_presentRequest(), and response_searchRequest().
|
static |
Definition at line 261 of file seshigh.c.
References do_close_req(), association::outgoing, and request_get().
Referenced by ir_read(), and ir_session().
|
static |
Definition at line 233 of file seshigh.c.
References ASSOC_DEAD, association::client_chan, Z_APDU::close, Z_Close::closeReason, association::cs_put_mask, Z_Close::diagnosticInformation, association::encode, EVENT_TIMEOUT, association::incoming, iochan_setevent, iochan_settimeout, log_requestdetail, association::outgoing, process_z_response(), request_deq(), request_release(), association::state, Z_APDU::u, association::version, yaz_log(), Z_APDU_close, and zget_APDU().
Referenced by do_close(), ir_read(), process_close(), and process_gdu_request().
|
static |
get_logbits sets global loglevel bits
Definition at line 109 of file seshigh.c.
References log_request, log_requestdetail, log_session, log_sessiondetail, logbits_set, and yaz_log_module_level().
Referenced by check_options(), and create_association().
|
static |
Definition at line 2201 of file seshigh.c.
References yaz_oi_get_string_oid(), and yaz_oid_userinfo_proxy.
Referenced by process_initRequest().
|
static |
Definition at line 2487 of file seshigh.c.
References diagbib1_str(), log_requestdetail, yaz_log(), and zget_init_diagnostics().
Referenced by process_initRequest().
| int ir_read | ( | IOCHAN | h, |
| int | event ) |
Definition at line 268 of file seshigh.c.
References ASSOC_DEAD, association::client_link, cs_close, cs_errmsg(), cs_errno, cs_get, association::cs_get_mask, cs_more, association::cs_put_mask, CS_WANT_WRITE, CSBUFSIZE, association::decode, destroy_association(), do_close(), do_close_req(), association::encode, odr::error, EVENT_INPUT, EVENT_OUTPUT, request::gdu_request, association::incoming, association::input_buffer, association::input_buffer_len, comstack::io_pending, iochan_destroy, iochan_getdata, iochan_setflag, log_session, odr_dumpBER(), odr_errmsg(), odr_extract_mem(), odr_getelement(), odr_geterror(), odr_offset(), odr_reset(), odr_setbuf(), OHTTP, association::print, process_gdu_response(), request_enq(), request_get(), request::request_mem, request_release(), association::state, yaz_log(), yaz_log_file(), YLOG_DEBUG, YLOG_WARN, Z_Close_protocolError, z_GDU(), and z_get_HTTP_Response().
Referenced by iochan_is_alive(), and ir_session().
| void ir_session | ( | IOCHAN | h, |
| int | event ) |
Definition at line 367 of file seshigh.c.
References ASSOC_DEAD, ASSOC_UP, association::client_chan, association::client_link, cs_accept, association::cs_accept_mask, cs_close, association::cs_get_mask, cs_put, association::cs_put_mask, CS_WANT_READ, CS_WANT_WRITE, destroy_association(), do_close(), EVENT_EXCEPT, EVENT_INPUT, EVENT_OUTPUT, EVENT_TIMEOUT, association::incoming, comstack::io_pending, iochan_clearflag, iochan_destroy, iochan_getdata, iochan_setevent, iochan_setflag, ir_read(), request::len_response, log_session, log_sessiondetail, association::outgoing, process_gdu_request(), request_deq(), request_head(), REQUEST_IDLE, REQUEST_PENDING, request_release(), request::response, association::state, request::state, yaz_log(), YLOG_DEBUG, YLOG_WARN, and Z_Close_lackOfActivity.
Referenced by inetd_connection(), and new_session().
|
static |
Definition at line 133 of file seshigh.c.
Referenced by pack_records(), process_deleteRequest(), process_initRequest(), process_presentRequest(), process_scanRequest(), response_searchRequest(), srw_bend_scan(), and srw_bend_search().
|
static |
Definition at line 2522 of file seshigh.c.
References bend_fetch_rr::basename, bend_fetch_rr::comp, Z_NamePlusRecord::databaseName, Z_Records::databaseOrSurDiagnostics, Z_NamePlusRecord::databaseRecord, diagrec(), association::encode, bend_fetch_rr::errcode, bend_fetch_rr::errstring, bend_fetch_rr::last_in_set, bend_fetch_rr::len, log_requestdetail, association::maximumRecordSize, Z_NamePlusRecordList::num_records, bend_fetch_rr::number, ODR_INT_PRINTF, odr_int_to_int(), odr_malloc(), odr_nullval(), odr_strdup_null(), odr_total(), bend_fetch_rr::output_format, association::preferredMessageSize, association::print, bend_fetch_rr::print, bend_fetch_rr::record, Z_NamePlusRecordList::records, bend_fetch_rr::referenceId, bend_fetch_rr::request_format, retrieve_fetch(), bend_fetch_rr::schema, bend_fetch_rr::setname, bend_fetch_rr::stream, bend_fetch_rr::surrogate_flag, surrogatediagrec(), Z_NamePlusRecord::u, Z_Records::u, Z_NamePlusRecord::which, Z_Records::which, YAZ_BIB1_PRESENT_REQUEST_OUT_OF_RANGE, YAZ_BIB1_RECORD_EXCEEDS_MAXIMUM_RECORD_SIZE, YAZ_BIB1_RECORD_EXCEEDS_PREFERRED_MESSAGE_SIZE, yaz_log(), yaz_snprintf(), YLOG_DEBUG, YLOG_WARN, z_ext_record_oid(), Z_NamePlusRecord_databaseRecord, Z_PresentStatus_failure, Z_PresentStatus_partial_2, Z_PresentStatus_partial_4, Z_PresentStatus_success, and Z_Records_DBOSD.
Referenced by process_presentRequest(), and response_searchRequest().
|
static |
Definition at line 3415 of file seshigh.c.
References request::apdu_request, Z_APDU::close, Z_Close::closeReason, Z_Close::diagnosticInformation, do_close_req(), log_request, log_requestdetail, Z_APDU::u, association::version, yaz_log(), and Z_Close_finished.
Referenced by process_z_request().
|
static |
Definition at line 3331 of file seshigh.c.
References request::apdu_request, association::backend, bend_initrequest::bend_delete, Z_DeleteResultSetResponse::bulkStatuses, bend_delete_rr::delete_status, Z_DeleteResultSetRequest::deleteFunction, Z_DeleteResultSetResponse::deleteListStatuses, Z_DeleteResultSetResponse::deleteMessage, Z_DeleteResultSetResponse::deleteOperationStatus, Z_APDU::deleteResultSetRequest, Z_APDU::deleteResultSetResponse, Z_ListStatuses::elements, association::encode, bend_delete_rr::function, Z_ListStatus::id, association::init, log_request, log_requestdetail, Z_ListStatuses::num, Z_DeleteResultSetRequest::num_resultSetList, bend_delete_rr::num_setnames, Z_DeleteResultSetResponse::numberNotDeleted, odr_int_to_int(), odr_intdup(), odr_malloc(), odr_strdup(), Z_DeleteResultSetResponse::otherInfo, association::print, bend_delete_rr::print, bend_delete_rr::referenceId, Z_DeleteResultSetRequest::referenceId, Z_DeleteResultSetResponse::referenceId, Z_DeleteResultSetRequest::resultSetList, bend_delete_rr::setnames, Z_ListStatus::status, bend_delete_rr::statuses, bend_delete_rr::stream, Z_APDU::u, Z_APDU::which, wrbuf_alloc(), wrbuf_cstr(), wrbuf_destroy(), wrbuf_printf(), yaz_log(), and Z_APDU_deleteResultSetResponse.
Referenced by process_z_request().
|
static |
Definition at line 3457 of file seshigh.c.
References request::apdu_request, bend_esrequest_rr::association, association::backend, bend_initrequest::bend_esrequest, association::decode, bend_esrequest_rr::decode, Z_ExtendedServicesResponse::diagnostics, Z_DiagRecs::diagRecs, Z_External::direct_reference, association::encode, bend_esrequest_rr::errcode, bend_esrequest_rr::errstring, bend_esrequest_rr::esr, Z_APDU::extendedServicesRequest, Z_APDU::extendedServicesResponse, association::init, log_request, Z_ExtendedServicesResponse::num_diagnostics, Z_DiagRecs::num_diagRecs, OID_STR_MAX, Z_ExtendedServicesResponse::operationStatus, association::print, bend_esrequest_rr::print, bend_esrequest_rr::referenceId, Z_ExtendedServicesRequest::referenceId, Z_ExtendedServicesResponse::referenceId, bend_esrequest_rr::stream, bend_esrequest_rr::taskPackage, Z_ExtendedServicesResponse::taskPackage, bend_esrequest_rr::taskPackageExt, Z_ExtendedServicesRequest::taskSpecificParameters, Z_APDU::u, wrbuf_alloc(), wrbuf_cstr(), wrbuf_destroy(), wrbuf_diags(), yaz_log(), yaz_oid_recsyn_extended, yaz_oid_to_string_buf(), YLOG_DEBUG, Z_APDU_extendedServicesResponse, z_ext_record_oid(), Z_ExtendedServicesResponse_accepted, Z_ExtendedServicesResponse_done, Z_ExtendedServicesResponse_failure, zget_APDU(), and zget_DiagRecs().
Referenced by process_z_request().
|
static |
Definition at line 2035 of file seshigh.c.
References request::apdu_request, do_close_req(), request::gdu_request, process_http_request(), process_z_request(), Z_GDU::u, Z_GDU::which, Z_GDU::z3950, Z_Close_systemProblem, Z_GDU_HTTP_Request, and Z_GDU_Z3950.
Referenced by ir_session(), and process_gdu_response().
|
static |
Definition at line 2147 of file seshigh.c.
References association::client_chan, association::cs_put_mask, association::decode, association::encode, EVENT_OUTPUT, association::incoming, iochan_setflag, request::len_response, odr_errmsg(), odr_getbuf(), odr_getelement(), odr_geterror(), odr_reset(), odr_setbuf(), association::outgoing, association::print, process_gdu_request(), request_deq(), request_enq(), request_head(), REQUEST_IDLE, request::response, request::size_response, request::state, yaz_log(), YLOG_WARN, and z_GDU().
Referenced by ir_read(), process_http_request(), and process_z_response().
|
static |
Definition at line 1794 of file seshigh.c.
References ASSOC_DEAD, check_path(), association::client_chan, Z_HTTP_Response::code, Z_HTTP_Response::content_buf, Z_HTTP_Response::content_len, control_association(), association::cs_get_mask, association::decode, Z_SRW_explainResponse::diagnostics, Z_SRW_scanResponse::diagnostics, Z_SRW_searchRetrieveResponse::diagnostics, Z_SRW_updateResponse::diagnostics, gfs_server::docpath, association::encode, Z_SRW_PDU::explain_request, Z_SRW_PDU::explain_response, request::gdu_request, Z_SOAP::generic, Z_HTTP_Request::headers, Z_HTTP_Response::headers, Z_GDU::HTTP_Request, Z_GDU::HTTP_Response, iochan_settimeout, statserv_options_block::keepalive, association::last_control, log_request, Z_HTTP_Request::method, Z_SRW_explainResponse::num_diagnostics, Z_SRW_scanResponse::num_diagnostics, Z_SRW_searchRetrieveResponse::num_diagnostics, Z_SRW_updateResponse::num_diagnostics, Z_SOAP_Generic::p, Z_HTTP_Request::path, process_gdu_response(), read_file(), Z_SRW_PDU::request, Z_SRW_PDU::response, Z_SRW_PDU::scan_request, Z_SRW_PDU::scan_response, association::server, srw_bend_explain(), srw_bend_scan(), srw_bend_search(), srw_bend_update(), Z_SRW_PDU::srw_version, association::state, gfs_server::stylesheet, Z_SRW_explainRequest::stylesheet, Z_SRW_scanRequest::stylesheet, Z_SRW_searchRetrieveRequest::stylesheet, Z_GDU::u, Z_SOAP::u, Z_SRW_PDU::u, Z_SRW_PDU::update_response, Z_HTTP_Request::version, Z_HTTP_Response::version, Z_SRW_PDU::which, yaz_isdigit, yaz_log(), yaz_mime_lookup_fname(), yaz_mime_types_add(), yaz_mime_types_create(), yaz_mime_types_destroy(), yaz_sru_decode(), yaz_srw_codec(), yaz_srw_decode(), yaz_srw_get_pdu(), yaz_srw_get_pdu_e(), yaz_ucp_codec(), YAZ_XMLNS_SRU_v1_0, YAZ_XMLNS_SRU_v1_1, YAZ_XMLNS_UPDATE_v0_9, YLOG_DEBUG, YLOG_LOG, z_get_HTTP_Response(), z_HTTP_header_add(), z_HTTP_header_lookup(), z_soap_codec_enc_xsl(), z_soap_error(), Z_SRW_explain_request, Z_SRW_explain_response, Z_SRW_scan_request, Z_SRW_scan_response, Z_SRW_searchRetrieve_request, Z_SRW_searchRetrieve_response, Z_SRW_update_request, and Z_SRW_update_response.
Referenced by process_gdu_request().
|
static |
Definition at line 2213 of file seshigh.c.
References request::apdu_request, ASSOC_DEAD, assoc_init_reset(), ASSOC_UP, bend_initrequest::auth, association::backend, statserv_options_block::bend_close, bend_initrequest::bend_delete, bend_initrequest::bend_esrequest, statserv_options_block::bend_init, bend_initrequest::bend_present, bend_initrequest::bend_scan, bend_initrequest::bend_search, bend_initrequest::bend_segment, bend_initrequest::bend_sort, bend_initrequest::charneg_request, bend_initrequest::charneg_response, association::client_chan, statserv_options_block::configname, control_association(), association::encode, bend_initresult::errcode, bend_initresult::errstring, Z_OtherInformationUnit::externallyDefinedInfo, get_vhost(), Z_IdPass::groupId, bend_initresult::handle, Z_InitRequest::idAuthentication, statserv_options_block::idle_timeout, Z_IdAuthentication::idPass, bend_initrequest::implementation_id, bend_initrequest::implementation_name, bend_initrequest::implementation_version, Z_InitRequest::implementationId, Z_InitResponse::implementationId, Z_InitRequest::implementationName, Z_InitResponse::implementationName, Z_InitRequest::implementationVersion, Z_InitResponse::implementationVersion, Z_OtherInformationUnit::information, association::init, init_diagnostics(), Z_APDU::initRequest, Z_APDU::initResponse, iochan_settimeout, log_request, log_requestdetail, association::maximumRecordSize, Z_InitRequest::maximumRecordSize, Z_InitResponse::maximumRecordSize, bend_initrequest::named_result_sets, odr_int_to_int(), odr_intdup(), odr_malloc(), ODR_MASK_GET, ODR_MASK_SET, odr_prepend(), Z_IdAuthentication::open, options(), Z_InitRequest::options, Z_InitResponse::options, Z_InitRequest::otherInfo, Z_InitResponse::otherInfo, association::preferredMessageSize, Z_InitRequest::preferredMessageSize, Z_InitResponse::preferredMessageSize, Z_InitRequest::protocolVersion, Z_InitResponse::protocolVersion, bend_initrequest::query_charset, bend_initrequest::records_in_same_charset, bend_initrequest::referenceId, Z_InitRequest::referenceId, Z_InitResponse::referenceId, Z_InitResponse::result, association::state, statserv_getcontrol(), Z_APDU::u, Z_IdAuthentication::u, Z_IdPass::userId, Z_InitResponse::userInformationField, association::version, Z_CharSetandLanguageNegotiation::which, Z_IdAuthentication::which, Z_OtherInformationUnit::which, wrbuf_alloc(), wrbuf_cstr(), wrbuf_destroy(), wrbuf_printf(), YAZ_BIB1_PERMANENT_SYSTEM_ERROR, yaz_get_charneg_record(), yaz_log(), yaz_oi_get_string_oid(), yaz_oi_update(), yaz_oid_userinfo_client_ip, yaz_set_response_charneg(), YLOG_DEBUG, YLOG_WARN, Z_APDU_initResponse, Z_CharSetandLanguageNegotiation_proposal, Z_IdAuthentication_anonymous, Z_IdAuthentication_idPass, Z_IdAuthentication_open, Z_Options_concurrentOperations, Z_Options_delSet, Z_Options_extendedServices, Z_Options_namedResultSets, Z_Options_negotiationModel, Z_Options_present, Z_Options_scan, Z_Options_search, Z_Options_sort, Z_Options_triggerResourceCtrl, Z_OtherInfo_externallyDefinedInfo, Z_ProtocolVersion_1, Z_ProtocolVersion_2, Z_ProtocolVersion_3, and zget_APDU().
Referenced by process_z_request().
|
static |
Definition at line 2961 of file seshigh.c.
References request::apdu_request, bend_present_rr::association, association::backend, bend_initrequest::bend_present, bend_present_rr::comp, diagrec(), association::encode, bend_present_rr::errcode, bend_present_rr::errstring, bend_present_rr::format, association::init, log_request, log_requestdetail, Z_PresentResponse::nextResultSetPosition, nmem_malloc(), bend_present_rr::number, Z_PresentRequest::numberOfRecordsRequested, Z_PresentResponse::numberOfRecordsReturned, ODR_INT_PRINTF, odr_int_to_int(), odr_intdup(), odr_malloc(), Z_PresentResponse::otherInfo, pack_records(), Z_PresentRequest::preferredRecordSyntax, Z_APDU::presentRequest, Z_APDU::presentResponse, Z_PresentResponse::presentStatus, association::print, bend_present_rr::print, Z_PresentRequest::recordComposition, Z_PresentResponse::records, bend_present_rr::referenceId, Z_PresentRequest::referenceId, Z_PresentResponse::referenceId, request::request_mem, Z_PresentRequest::resultSetId, Z_PresentRequest::resultSetStartPoint, bend_present_rr::setname, bend_present_rr::start, bend_present_rr::stream, Z_APDU::u, Z_APDU::which, wrbuf_alloc(), wrbuf_cstr(), wrbuf_destroy(), wrbuf_printf(), yaz_log(), Z_APDU_presentResponse, Z_PresentStatus_failure, and Z_PresentStatus_success.
Referenced by process_z_request().
|
static |
Definition at line 3049 of file seshigh.c.
References Z_TermInfo::alternativeTerm, request::apdu_request, Z_ScanRequest::attributeSet, Z_ScanResponse::attributeSet, bend_scan_rr::attributeset, association::backend, bend_scan_rr::basenames, bend_initrequest::bend_scan, BEND_SCAN_PARTIAL, Z_TermInfo::byAttributes, Z_ScanRequest::databaseNames, association::decode, Z_DiagRecs::diagRecs, scan_entry::display_term, Z_TermInfo::displayTerm, association::encode, bend_scan_rr::entries, Z_ListEntries::entries, Z_ScanResponse::entries, bend_scan_rr::errcode, scan_entry::errcode, bend_scan_rr::errstring, scan_entry::errstring, bend_scan_rr::extra_args, bend_scan_rr::extra_response_data, Z_Term::general, Z_TermInfo::globalOccurrences, association::init, log_request, log_requestdetail, log_scan_term_level(), Z_ListEntries::nonsurrogateDiagnostics, bend_scan_rr::num_bases, Z_ScanRequest::num_databaseNames, Z_DiagRecs::num_diagRecs, bend_scan_rr::num_entries, Z_ListEntries::num_entries, Z_ListEntries::num_nonsurrogateDiagnostics, Z_ScanResponse::numberOfEntriesReturned, Z_ScanRequest::numberOfTermsRequested, scan_entry::occurrences, odr_create_Odr_oct(), ODR_INT_PRINTF, odr_int_to_int(), odr_intdup(), odr_malloc(), odr_strdup(), Z_ScanRequest::otherInfo, Z_ScanResponse::otherInfo, Z_TermInfo::otherTermInfo, Z_ScanResponse::positionOfTerm, Z_ScanRequest::preferredPositionInResponse, association::print, bend_scan_rr::print, bend_scan_rr::referenceId, Z_ScanRequest::referenceId, Z_ScanResponse::referenceId, bend_scan_rr::scanClause, Z_APDU::scanRequest, Z_APDU::scanResponse, Z_ScanResponse::scanStatus, bend_scan_rr::setname, bend_scan_rr::status, bend_scan_rr::step_size, Z_ScanRequest::stepSize, Z_ScanResponse::stepSize, bend_scan_rr::stream, Z_TermInfo::suggestedAttributes, Z_Entry::surrogateDiagnostic, bend_scan_rr::term, scan_entry::term, Z_TermInfo::term, bend_scan_rr::term_position, Z_Entry::termInfo, Z_ScanRequest::termListAndStartPoint, Z_APDU::u, Z_Entry::u, Z_Term::u, Z_APDU::which, Z_Entry::which, Z_Term::which, wr_diag(), wrbuf_alloc(), wrbuf_cstr(), wrbuf_destroy(), wrbuf_printf(), wrbuf_puts(), yaz_log(), yaz_oi_get_string_oid(), yaz_oid_userinfo_scan_set, yaz_scan_to_wrbuf(), YLOG_DEBUG, Z_APDU_scanResponse, Z_Entry_surrogateDiagnostic, Z_Entry_termInfo, Z_Scan_failure, Z_Scan_partial_5, Z_Scan_success, Z_Term_general, and zget_DiagRecs().
Referenced by process_z_request().
|
static |
Definition at line 2691 of file seshigh.c.
References Z_SearchRequest::additionalSearchInfo, request::apdu_request, bend_search_rr::association, association::backend, bend_search_rr::basenames, bend_initrequest::bend_search, ccl2pqf(), gfs_server::ccl_transform, gfs_server::client_query_charset, Z_External::cql, cql2pqf(), gfs_server::cql_transform, Z_SearchRequest::databaseNames, association::decode, bend_search_rr::decode, association::encode, bend_search_rr::errcode, bend_search_rr::errstring, bend_search_rr::estimated_hit_count, bend_search_rr::extra_args, bend_search_rr::extra_response_data, bend_search_rr::hits, association::init, log_requestdetail, Z_SearchRequest::mediumSetPresentNumber, nmem_malloc(), nmem_transfer(), bend_search_rr::num_bases, Z_SearchRequest::num_databaseNames, odr_getmem, Z_SearchRequest::otherInfo, bend_search_rr::partial_resultset, bend_search_rr::present_number, association::print, bend_search_rr::print, bend_search_rr::query, Z_SearchRequest::query, bend_search_rr::referenceId, Z_SearchRequest::referenceId, bend_search_rr::replace_set, Z_SearchRequest::replaceIndicator, request::request_mem, response_searchRequest(), Z_SearchRequest::resultSetName, bend_search_rr::search_info, bend_search_rr::search_input, Z_APDU::searchRequest, association::server, bend_search_rr::setname, bend_search_rr::srw_setname, bend_search_rr::srw_setnameIdleTime, bend_search_rr::srw_sortKeys, bend_search_rr::stream, Z_Query::type_1, Z_Query::type_104, Z_Query::type_2, Z_APDU::u, Z_External::u, Z_Query::u, Z_External::which, Z_Query::which, yaz_diag_srw_to_bib1(), yaz_iconv_close(), yaz_iconv_open(), yaz_log(), yaz_log_zquery_level(), yaz_query_charset_convert_rpnquery(), YLOG_WARN, Z_External_CQL, Z_Query_type_1, Z_Query_type_104, and Z_Query_type_2.
Referenced by process_z_request().
|
static |
Definition at line 3442 of file seshigh.c.
References request::apdu_request, bend_segment_rr::association, association::backend, bend_initrequest::bend_segment, association::decode, bend_segment_rr::decode, association::encode, association::init, association::print, bend_segment_rr::print, bend_segment_rr::segment, Z_APDU::segmentRequest, bend_segment_rr::stream, and Z_APDU::u.
Referenced by process_z_request().
|
static |
Definition at line 3255 of file seshigh.c.
References request::apdu_request, association::backend, bend_initrequest::bend_sort, Z_SortResponse::diagnostics, Z_DiagRecs::diagRecs, association::encode, bend_sort_rr::errcode, bend_sort_rr::errstring, association::init, bend_sort_rr::input_setnames, Z_SortRequest::inputResultSetNames, log_request, log_requestdetail, Z_SortResponse::num_diagnostics, Z_DiagRecs::num_diagRecs, bend_sort_rr::num_input_setnames, Z_SortRequest::num_inputResultSetNames, odr_intdup(), odr_malloc(), Z_SortResponse::otherInfo, bend_sort_rr::output_setname, association::print, bend_sort_rr::print, bend_sort_rr::referenceId, Z_SortRequest::referenceId, Z_SortResponse::referenceId, Z_SortResponse::resultCount, Z_SortResponse::resultSetStatus, bend_sort_rr::sort_sequence, bend_sort_rr::sort_status, Z_SortRequest::sortedResultSetName, Z_APDU::sortRequest, Z_APDU::sortResponse, Z_SortRequest::sortSequence, Z_SortResponse::sortStatus, bend_sort_rr::stream, Z_APDU::u, Z_APDU::which, wrbuf_alloc(), wrbuf_cstr(), wrbuf_destroy(), wrbuf_printf(), wrbuf_puts(), yaz_log(), Z_APDU_sortResponse, Z_SortResponse_failure, and zget_DiagRecs().
Referenced by process_z_request().
|
static |
Definition at line 2055 of file seshigh.c.
References request::apdu_request, bend_initrequest::bend_delete, bend_initrequest::bend_esrequest, bend_initrequest::bend_scan, bend_initrequest::bend_segment, bend_initrequest::bend_sort, association::init, process_close(), process_deleteRequest(), process_ESRequest(), process_initRequest(), process_presentRequest(), process_scanRequest(), process_searchRequest(), process_segmentRequest(), process_sortRequest(), process_z_response(), REQUEST_IDLE, request::state, Z_APDU::which, yaz_log(), YLOG_DEBUG, Z_APDU_close, Z_APDU_deleteResultSetRequest, Z_APDU_extendedServicesRequest, Z_APDU_initRequest, Z_APDU_presentRequest, Z_APDU_scanRequest, Z_APDU_searchRequest, Z_APDU_segmentRequest, Z_APDU_sortRequest, and Z_APDU_triggerResourceControlRequest.
Referenced by process_gdu_request().
|
static |
Definition at line 2192 of file seshigh.c.
References association::encode, odr_malloc(), process_gdu_response(), Z_GDU::u, Z_GDU::which, Z_GDU::z3950, and Z_GDU_Z3950.
Referenced by do_close_req(), and process_z_request().
|
static |
Definition at line 1757 of file seshigh.c.
References odr_malloc(), yaz_log(), YLOG_ERRNO, YLOG_LOG, and YLOG_WARN.
Referenced by process_http_request().
|
static |
Definition at line 2793 of file seshigh.c.
References Z_SearchResponse::additionalSearchInfo, request::apdu_request, bend_present_rr::association, association::backend, bend_initrequest::bend_present, bool_t, bend_present_rr::comp, Z_SearchRequest::databaseNames, diagrec(), association::encode, bend_present_rr::errcode, bend_search_rr::errcode, bend_present_rr::errstring, bend_search_rr::errstring, bend_search_rr::estimated_hit_count, bend_present_rr::format, bend_search_rr::hits, association::init, Z_SearchRequest::largeSetLowerBound, log_request, log_requestdetail, Z_SearchRequest::mediumSetElementSetNames, Z_SearchRequest::mediumSetPresentNumber, Z_SearchResponse::nextResultSetPosition, nmem_malloc(), Z_SearchRequest::num_databaseNames, bend_present_rr::number, Z_SearchResponse::numberOfRecordsReturned, odr_booldup(), ODR_INT_PRINTF, odr_int_to_int(), odr_intdup(), odr_malloc(), Z_SearchResponse::otherInfo, pack_records(), bend_search_rr::partial_resultset, Z_SearchRequest::preferredRecordSyntax, Z_SearchResponse::presentStatus, association::print, bend_present_rr::print, Z_SearchRequest::query, Z_SearchResponse::records, bend_present_rr::referenceId, Z_SearchRequest::referenceId, Z_SearchResponse::referenceId, request::request_mem, Z_SearchResponse::resultCount, Z_SearchRequest::resultSetName, Z_SearchResponse::resultSetStatus, bend_search_rr::search_info, Z_APDU::searchRequest, Z_APDU::searchResponse, Z_SearchResponse::searchStatus, bend_present_rr::setname, Z_RecordComposition::simple, Z_SearchRequest::smallSetElementSetNames, Z_SearchRequest::smallSetUpperBound, bend_present_rr::start, bend_present_rr::stream, Z_APDU::u, Z_RecordComposition::u, Z_APDU::which, Z_RecordComposition::which, wrbuf_alloc(), wrbuf_cstr(), wrbuf_destroy(), wrbuf_printf(), wrbuf_puts(), yaz_log(), yaz_query_to_wrbuf(), YLOG_FATAL, Z_APDU_searchResponse, Z_PresentStatus_failure, Z_RecordComp_simple, Z_SearchResponse_estimate, Z_SearchResponse_none, and Z_SearchResponse_subset.
Referenced by process_searchRequest().
|
static |
Definition at line 597 of file seshigh.c.
References association::backend, bend_initrequest::bend_fetch, bend_fetch_rr::comp, bend_fetch_rr::errcode, bend_fetch_rr::errstring, association::init, bend_fetch_rr::len, odr::mem, odr_getmem, odr_malloc(), odr_strdup(), oid_oid_to_dotstring(), oid_oidcmp(), OID_STR_MAX, bend_fetch_rr::output_format, bend_fetch_rr::record, bend_fetch_rr::request_format, gfs_server::retrieval, bend_fetch_rr::schema, association::server, bend_fetch_rr::stream, bend_fetch_rr::surrogate_flag, wrbuf_alloc(), wrbuf_buf, wrbuf_destroy(), wrbuf_len, YAZ_BIB1_RECORD_SYNTAX_UNSUPP, YAZ_BIB1_SPECIFIED_ELEMENT_SET_NAME_NOT_VALID_FOR_SPECIFIED_, YAZ_BIB1_SYSTEM_ERROR_IN_PRESENTING_RECORDS, yaz_get_esn(), yaz_iconv_open(), yaz_marc_create(), yaz_marc_destroy(), yaz_oid_recsyn_opac, yaz_record_conv_get_error(), yaz_record_conv_opac_record(), yaz_record_conv_record(), yaz_record_get_output_charset(), yaz_retrieval_get_error(), yaz_retrieval_request(), yaz_set_esn(), and yaz_xml_to_opac().
Referenced by pack_records(), and srw_bend_fetch().
|
static |
Definition at line 1280 of file seshigh.c.
References association::backend, bend_initrequest::bend_explain, bend_explain_rr::database, Z_SRW_explainRequest::database, association::decode, bend_explain_rr::decode, Z_SRW_explainResponse::diagnostics, association::encode, bend_explain_rr::explain_buf, Z_SRW_PDU::explain_request, association::init, log_requestdetail, Z_SRW_explainResponse::num_diagnostics, association::print, bend_explain_rr::print, Z_SRW_explainResponse::record, Z_SRW_record::recordData_buf, Z_SRW_record::recordData_len, Z_SRW_explainRequest::recordPacking, Z_SRW_record::recordPacking, Z_SRW_record::recordPosition, Z_SRW_record::recordSchema, bend_explain_rr::schema, association::server, bend_explain_rr::server_node_ptr, gfs_server::server_node_ptr, srw_bend_explain_default(), srw_bend_init(), bend_explain_rr::stream, Z_SRW_PDU::u, yaz_log(), yaz_srw_str_to_pack(), and Z_SRW_recordPacking_string.
Referenced by process_http_request().
|
static |
Definition at line 1244 of file seshigh.c.
References bend_explain_rr::explain_buf, odr_malloc(), bend_explain_rr::server_node_ptr, and bend_explain_rr::stream.
Referenced by srw_bend_explain().
|
static |
Definition at line 728 of file seshigh.c.
References bend_fetch_rr::basename, bend_initrequest::bend_fetch, bool_t, bend_fetch_rr::comp, Z_RecordComposition::complex, Z_CompSpec::dbSpecific, association::decode, Z_ElementSpec::elementSetName, Z_Specification::elementSpec, association::encode, bend_fetch_rr::errcode, bend_fetch_rr::errstring, Z_CompSpec::generic, association::init, bend_fetch_rr::last_in_set, bend_fetch_rr::len, Z_CompSpec::num_dbSpecific, Z_CompSpec::num_recordSyntax, bend_fetch_rr::number, odr_intdup(), odr_malloc(), odr_oiddup(), odr_strdup_null(), association::print, bend_fetch_rr::print, bend_fetch_rr::record, Z_SRW_record::recordData_buf, Z_SRW_record::recordData_len, Z_SRW_record::recordPosition, Z_SRW_record::recordSchema, Z_SRW_searchRetrieveRequest::recordSchema, Z_CompSpec::recordSyntax, bend_fetch_rr::referenceId, bend_fetch_rr::request_format, retrieve_fetch(), bend_fetch_rr::schema, Z_Specification::schema, Z_CompSpec::selectAlternativeSyntax, bend_fetch_rr::setname, bend_fetch_rr::stream, bend_fetch_rr::surrogate_flag, Z_ElementSpec::u, Z_RecordComposition::u, Z_Specification::uri, Z_ElementSpec::which, Z_RecordComposition::which, Z_Specification::which, yaz_diag_bib1_to_srw(), yaz_mk_sru_surrogate(), yaz_oid_recsyn_xml, Z_ElementSpec_elementSetName, Z_RecordComp_complex, and Z_Schema_uri.
Referenced by srw_bend_search().
|
static |
Definition at line 534 of file seshigh.c.
References ASSOC_DEAD, assoc_init_reset(), bend_initrequest::auth, association::backend, statserv_options_block::bend_init, Z_External::charNeg3, bend_initrequest::charneg_request, statserv_options_block::configname, association::decode, association::encode, bend_initresult::errcode, bend_initresult::errstring, bend_initresult::handle, association::init, log_requestdetail, odr_malloc(), Z_IdAuthentication::open, Z_SRW_PDU::password, association::state, statserv_getcontrol(), Z_External::u, Z_IdAuthentication::u, Z_SRW_PDU::username, Z_IdAuthentication::which, yaz_add_srw_diagnostic(), yaz_diag_bib1_to_srw(), yaz_log(), yaz_set_proposal_charneg(), YAZ_SRW_AUTHENTICATION_ERROR, z_HTTP_header_lookup(), and Z_IdAuthentication_open.
Referenced by srw_bend_explain(), srw_bend_scan(), srw_bend_search(), and srw_bend_update().
|
static |
Definition at line 1331 of file seshigh.c.
References bend_scan_rr::attributeset, association::backend, bend_scan_rr::basenames, bend_initrequest::bend_scan, bend_initrequest::bend_srw_scan, cql2pqf_scan(), gfs_server::cql_transform, Z_SRW_scanRequest::database, association::decode, Z_SRW_scanResponse::diagnostics, scan_entry::display_term, Z_SRW_scanTerm::displayTerm, association::encode, bend_scan_rr::entries, bend_scan_rr::errcode, scan_entry::errcode, bend_scan_rr::errstring, scan_entry::errstring, bend_scan_rr::extra_args, Z_SRW_PDU::extra_args, bend_scan_rr::extra_response_data, Z_SRW_PDU::extraResponseData_buf, Z_SRW_PDU::extraResponseData_len, association::init, log_request, log_requestdetail, Z_SRW_scanRequest::maximumTerms, bend_scan_rr::num_bases, Z_SRW_scanResponse::num_diagnostics, bend_scan_rr::num_entries, Z_SRW_scanResponse::num_terms, Z_SRW_scanTerm::numberOfRecords, scan_entry::occurrences, ODR_INT_PRINTF, odr_int_to_int(), odr_intdup(), odr_malloc(), odr_strdup(), association::print, bend_scan_rr::print, Z_SRW_scanRequest::queryType, bend_scan_rr::referenceId, Z_SRW_scanRequest::responsePosition, Z_SRW_PDU::scan_request, Z_SRW_PDU::scan_response, bend_scan_rr::scanClause, Z_SRW_scanRequest::scanClause, association::server, bend_scan_rr::setname, srw_bend_init(), bend_scan_rr::step_size, bend_scan_rr::stream, bend_scan_rr::term, scan_entry::term, bend_scan_rr::term_position, Z_SRW_scanResponse::terms, Z_SRW_PDU::u, Z_SRW_diagnostic::uri, Z_SRW_scanTerm::value, Z_SRW_scanTerm::whereInList, wrbuf_alloc(), wrbuf_cstr(), wrbuf_destroy(), wrbuf_printf(), yaz_add_srw_diagnostic(), YAZ_BIB1_DATABASE_UNAVAILABLE, yaz_diag_bib1_to_srw(), yaz_log(), yaz_pqf_create(), yaz_pqf_destroy(), yaz_pqf_scan(), and YAZ_SRW_UNSUPP_OPERATION.
Referenced by process_http_request().
|
static |
Definition at line 926 of file seshigh.c.
References bend_present_rr::association, bend_search_rr::association, association::backend, bend_search_rr::basenames, bend_initrequest::bend_present, bend_initrequest::bend_search, bend_present_rr::comp, Z_External::cql, cql2pqf(), gfs_server::cql_transform, Z_SRW_searchRetrieveRequest::database, association::decode, bend_search_rr::decode, Z_External::descriptor, Z_SRW_searchRetrieveResponse::diagnostics, Z_External::direct_reference, association::encode, bend_present_rr::errcode, bend_search_rr::errcode, bend_present_rr::errstring, bend_search_rr::errstring, bend_search_rr::estimated_hit_count, bend_search_rr::extra_args, Z_SRW_PDU::extra_args, Z_SRW_searchRetrieveResponse::extra_records, bend_search_rr::extra_response_data, Z_SRW_PDU::extraResponseData_buf, Z_SRW_PDU::extraResponseData_len, Z_SRW_searchRetrieveRequest::facetList, Z_SRW_searchRetrieveResponse::facetList, Z_ElementSetNames::generic, bend_search_rr::hits, Z_External::indirect_reference, association::init, log_request, log_requestdetail, Z_SRW_searchRetrieveRequest::maximumRecords, bend_search_rr::num_bases, Z_SRW_searchRetrieveResponse::num_diagnostics, Z_SRW_searchRetrieveResponse::num_records, bend_present_rr::number, Z_SRW_searchRetrieveResponse::numberOfRecords, odr_getoidbystr(), ODR_INT_PRINTF, odr_int_to_int(), odr_intdup(), odr_malloc(), odr_strdup(), bend_search_rr::partial_resultset, bend_search_rr::present_number, association::print, bend_present_rr::print, bend_search_rr::print, bend_search_rr::query, Z_SRW_searchRetrieveRequest::query, Z_SRW_searchRetrieveRequest::queryType, Z_SRW_record::recordData_buf, Z_SRW_record::recordPacking, Z_SRW_searchRetrieveRequest::recordPacking, Z_SRW_searchRetrieveResponse::records, Z_SRW_searchRetrieveRequest::recordSchema, bend_present_rr::referenceId, bend_search_rr::referenceId, bend_search_rr::replace_set, Z_SRW_PDU::request, Z_SRW_PDU::response, Z_SRW_searchRetrieveResponse::resultCountPrecision, Z_SRW_searchRetrieveResponse::resultSetId, Z_SRW_searchRetrieveResponse::resultSetIdleTime, bend_search_rr::search_info, bend_search_rr::search_input, association::server, bend_present_rr::setname, bend_search_rr::setname, Z_RecordComposition::simple, Z_SRW_searchRetrieveRequest::sort, Z_SRW_searchRetrieveRequest::sortKeys, srw_bend_fetch(), srw_bend_init(), bend_search_rr::srw_setname, bend_search_rr::srw_setnameIdleTime, bend_search_rr::srw_sortKeys, Z_SRW_PDU::srw_version, bend_present_rr::start, Z_SRW_searchRetrieveRequest::startRecord, bend_present_rr::stream, bend_search_rr::stream, Z_Query::type_1, Z_Query::type_104, Z_ElementSetNames::u, Z_External::u, Z_Query::u, Z_RecordComposition::u, Z_SRW_PDU::u, Z_SRW_diagnostic::uri, Z_ElementSetNames::which, Z_External::which, Z_Query::which, Z_RecordComposition::which, wrbuf_alloc(), wrbuf_cstr(), wrbuf_destroy(), wrbuf_printf(), yaz_add_srw_diagnostic(), YAZ_BIB1_DATABASE_UNAVAILABLE, yaz_diag_bib1_to_srw(), yaz_log(), yaz_log_zquery_level(), yaz_oi_get_facetlist(), yaz_oi_set_facetlist(), yaz_pqf_create(), yaz_pqf_destroy(), yaz_pqf_error(), yaz_pqf_parse(), YAZ_SRW_FIRST_RECORD_POSITION_OUT_OF_RANGE, YAZ_SRW_QUERY_SYNTAX_ERROR, YAZ_SRW_RESULT_SET_CREATED_WITH_VALID_PARTIAL_RESULTS_AVAILABLE, yaz_srw_str_to_pack(), YAZ_SRW_UNSUPP_QUERY_TYPE, YLOG_DEBUG, Z_ElementSetNames_generic, Z_External_CQL, Z_Query_type_1, Z_Query_type_104, Z_RecordComp_simple, and Z_SRW_recordPacking_string.
Referenced by process_http_request().
|
static |
Definition at line 1511 of file seshigh.c.
References association::backend, bend_update_rr::basenames, bend_initrequest::bend_srw_update, Z_SRW_updateRequest::database, bend_update_rr::details, Z_SRW_updateResponse::diagnostics, association::encode, Z_SRW_updateRequest::extra_record, Z_SRW_updateResponse::extra_record, bend_update_rr::extra_record_data, bend_update_rr::extra_request_data, bend_update_rr::extra_response_data, Z_SRW_extra_record::extraRecordData_buf, Z_SRW_extra_record::extraRecordData_len, Z_SRW_updateRequest::extraRequestData_buf, Z_SRW_updateRequest::extraRequestData_len, Z_SRW_updateResponse::extraResponseData_buf, Z_SRW_updateResponse::extraResponseData_len, association::init, log_session, bend_update_rr::message, bend_update_rr::num_bases, Z_SRW_updateResponse::num_diagnostics, Z_SRW_updateRequest::num_recordVersions, Z_SRW_updateResponse::num_recordVersions, bend_update_rr::num_versions, odr_strdup(), odr_strdupn(), bend_update_rr::operation, Z_SRW_updateRequest::operation, bend_update_rr::operation_status, Z_SRW_updateResponse::operationStatus, association::print, bend_update_rr::print, Z_SRW_updateRequest::record, Z_SRW_updateResponse::record, bend_update_rr::record_data, bend_update_rr::record_id, bend_update_rr::record_packing, bend_update_rr::record_schema, bend_update_rr::record_versions, Z_SRW_record::recordData_buf, Z_SRW_record::recordData_len, Z_SRW_updateRequest::recordId, Z_SRW_updateResponse::recordId, Z_SRW_extra_record::recordIdentifier, Z_SRW_record::recordPacking, Z_SRW_record::recordSchema, Z_SRW_updateRequest::recordVersions, Z_SRW_updateResponse::recordVersions, srw_bend_init(), bend_update_rr::stream, Z_SRW_PDU::u, Z_SRW_PDU::update_request, bend_update_rr::uri, yaz_add_sru_update_diagnostic(), yaz_add_srw_diagnostic_uri(), yaz_log(), YAZ_SRU_UPDATE_INVALID_ACTION, YAZ_SRU_UPDATE_MISSING_MANDATORY_ELEMENT_RECORD_REJECTED, YAZ_SRU_UPDATE_UNSPECIFIED_DATABASE_ERROR, yaz_srw_get_extra_record(), yaz_srw_get_record(), yaz_srw_pack_to_str(), yaz_srw_str_to_pack(), YLOG_DEBUG, YLOG_WARN, and Z_SRW_recordPacking_string.
Referenced by process_http_request().
|
static |
Definition at line 2513 of file seshigh.c.
References diagbib1_str(), association::encode, log_requestdetail, yaz_log(), and zget_surrogateDiagRec().
Referenced by pack_records().
|
static |
Definition at line 121 of file seshigh.c.
References diagbib1_str(), wrbuf_printf(), wrbuf_puts(), and wrbuf_puts_replace_char().
Referenced by process_scanRequest().
|
static |
Definition at line 105 of file seshigh.c.
Referenced by get_logbits(), process_close(), process_deleteRequest(), process_ESRequest(), process_http_request(), process_initRequest(), process_presentRequest(), process_scanRequest(), process_sortRequest(), response_searchRequest(), srw_bend_scan(), and srw_bend_search().
|
static |
Definition at line 106 of file seshigh.c.
Referenced by assoc_init_reset(), cql2pqf(), diagrec(), do_close_req(), get_logbits(), init_diagnostics(), pack_records(), process_close(), process_deleteRequest(), process_initRequest(), process_presentRequest(), process_scanRequest(), process_searchRequest(), process_sortRequest(), response_searchRequest(), srw_bend_explain(), srw_bend_init(), srw_bend_scan(), srw_bend_search(), and surrogatediagrec().
|
static |
Definition at line 103 of file seshigh.c.
Referenced by get_logbits(), get_logbits(), ir_read(), ir_session(), new_session(), and srw_bend_update().
|
static |
Definition at line 104 of file seshigh.c.
Referenced by get_logbits(), get_logbits(), inetd_connection(), ir_session(), and listener().
|
static |
Definition at line 102 of file seshigh.c.
Referenced by create_association(), get_logbits(), and get_logbits().