* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Odr_int hits; /**< hits (output) */
int errcode; /**< Diagnostic code / 0 for no error (output) */
char *errstring; /**< Additional info (output) */
Odr_int hits; /**< hits (output) */
int errcode; /**< Diagnostic code / 0 for no error (output) */
char *errstring; /**< Additional info (output) */
int partial_resultset; /**< 1=partial results; 0=full (output)*/
Z_SRW_extra_arg *extra_args; /**< SRU extra request parameters (input) */
char *extra_response_data; /**< SRW extra XML response (output) */
int partial_resultset; /**< 1=partial results; 0=full (output)*/
Z_SRW_extra_arg *extra_args; /**< SRU extra request parameters (input) */
char *extra_response_data; /**< SRW extra XML response (output) */
Z_RecordComposition *comp; /**< Formatting instructions (input) */
ODR stream; /**< encoding stream (input) */
ODR print; /**< printing stream (input) */
Z_RecordComposition *comp; /**< Formatting instructions (input) */
ODR stream; /**< encoding stream (input) */
ODR print; /**< printing stream (input) */
int errcode; /**< Diagnostic code / 0 for no error (output) */
char *errstring; /**< Additional info (output) */
int errcode; /**< Diagnostic code / 0 for no error (output) */
char *errstring; /**< Additional info (output) */
char *errstring;
char *scanClause; /**< CQL scan clause */
char *setname; /**< Scan in result set (NULL if omitted) */
char *errstring;
char *scanClause; /**< CQL scan clause */
char *setname; /**< Scan in result set (NULL if omitted) */
int delete_status; /**< status for the whole operation */
int *statuses; /**< status each set - indexed as setnames */
ODR stream;
int delete_status; /**< status for the whole operation */
int *statuses; /**< status each set - indexed as setnames */
ODR stream;
ODR stream; /* encoding stream */
ODR decode; /* decoding stream */
ODR print; /* printing stream */
ODR stream; /* encoding stream */
ODR decode; /* decoding stream */
ODR print; /* printing stream */
/** \brief encoding stream (for results) */
ODR stream;
/** \brief printing stream */
ODR print;
/** \brief decoding stream (use stream for results) */
/** \brief encoding stream (for results) */
ODR stream;
/** \brief printing stream */
ODR print;
/** \brief decoding stream (use stream for results) */
/** \brief reference ID */
Z_ReferenceId *referenceId;
/** \brief peer address of client */
/** \brief reference ID */
Z_ReferenceId *referenceId;
/** \brief peer address of client */
*/
Z_CharSetandLanguageNegotiation *charneg_request;
/** \brief character negotiation response */
Z_External *charneg_response;
*/
Z_CharSetandLanguageNegotiation *charneg_request;
/** \brief character negotiation response */
Z_External *charneg_response;
This is NULL by default. It should be set to the native character
set that the backend assumes for query terms */
This is NULL by default. It should be set to the native character
set that the backend assumes for query terms */
Is 0 (No) by default. Set to 1 (yes) if records is in the same
character set as queries. If in doubt, use 0 (No).
*/
Is 0 (No) by default. Set to 1 (yes) if records is in the same
character set as queries. If in doubt, use 0 (No).
*/
/** \brief control block for server */
typedef struct statserv_options_block
{
int dynamic; /**< fork on incoming requests */
int threads; /**< use threads */
int one_shot; /**< one session then exit(1) */
/** \brief control block for server */
typedef struct statserv_options_block
{
int dynamic; /**< fork on incoming requests */
int threads; /**< use threads */
int one_shot; /**< one session then exit(1) */
- char apdufile[ODR_MAXNAME+1]; /**< file for pretty-printed PDUs */
- char logfile[ODR_MAXNAME+1]; /**< file for diagnostic output */
- char default_listen[1024]; /**< 0 == no default listen */
- enum oid_proto default_proto; /**< PROTO_SR or PROTO_Z3950 */
+ char apdufile[BEND_NAME_MAX]; /**< file for pretty-printed PDUs */
+ char logfile[BEND_NAME_MAX]; /**< file for diagnostic output */
+ enum oid_proto default_proto; /**< PROTO_SR or PROTO_Z3950 */
int idle_timeout; /**< how many minutes to wait before closing */
int maxrecordsize; /**< maximum value for negotiation */
int idle_timeout; /**< how many minutes to wait before closing */
int maxrecordsize; /**< maximum value for negotiation */
- char configname[ODR_MAXNAME+1]; /**< given to the backend in bend_init */
- char setuid[ODR_MAXNAME+1]; /**< setuid to this user after binding */
+ char configname[BEND_NAME_MAX]; /**< given to the backend in bend_init */
+ char setuid[BEND_NAME_MAX]; /**< setuid to this user after binding */
void (*bend_start)(struct statserv_options_block *p);
void (*bend_stop)(struct statserv_options_block *p);
int (*options_func)(int argc, char **argv);
int (*check_ip)(void *cd, const char *addr, int len, int type);
void (*bend_start)(struct statserv_options_block *p);
void (*bend_stop)(struct statserv_options_block *p);
int (*options_func)(int argc, char **argv);
int (*check_ip)(void *cd, const char *addr, int len, int type);
#ifdef WIN32
/* We only have these members for the windows version */
/* They seemed a bit large to have them there in general */
#ifdef WIN32
/* We only have these members for the windows version */
/* They seemed a bit large to have them there in general */
- char service_name[128]; /**< NT Service Name */
- char app_name[128]; /**< Application Name */
- char service_dependencies[128]; /**< The services we are dependent on */
- char service_display_name[128]; /**< The service display name */
+ char service_name[BEND_NAME_MAX];/**< NT Service Name */
+ char app_name[BEND_NAME_MAX]; /**< Application Name */
+ char service_dependencies[BEND_NAME_MAX];
+ char service_display_name[BEND_NAME_MAX];
- struct bend_soap_handler *soap_handlers;
- char pid_fname[128]; /**< pid fname */
- int background; /**< auto daemon */
- char cert_fname[128]; /**< SSL certificate fname */
- char xml_config[128]; /**< XML config filename */
+ char pid_fname[BEND_NAME_MAX]; /**< pid fname */
+ int background; /**< auto daemon */
+ char cert_fname[BEND_NAME_MAX];/**< SSL certificate fname */
+ char xml_config[BEND_NAME_MAX];/**< XML config filename */
+ int keepalive; /**< keep alive if HTTP 1.1 (default: 1) */