YAZ  5.34.0
Data Fields
statserv_options_block Struct Reference

control block for server More...

#include <backend.h>

Data Fields

int dynamic
 
int threads
 
int one_shot
 
char apdufile [BEND_NAME_MAX]
 
char logfile [BEND_NAME_MAX]
 
enum oid_proto default_proto
 
int idle_timeout
 
int maxrecordsize
 
char configname [BEND_NAME_MAX]
 
char setuid [BEND_NAME_MAX]
 
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)
 
char daemon_name [BEND_NAME_MAX]
 
int inetd
 
void * handle
 
bend_initresult *(* bend_init )(bend_initrequest *r)
 
void(* bend_close )(void *handle)
 
char pid_fname [BEND_NAME_MAX]
 
int background
 
char cert_fname [BEND_NAME_MAX]
 
char xml_config [BEND_NAME_MAX]
 
int keepalive
 

Detailed Description

control block for server

Definition at line 331 of file backend.h.

Field Documentation

◆ apdufile

char statserv_options_block::apdufile[BEND_NAME_MAX]

file for pretty-printed PDUs

Definition at line 336 of file backend.h.

Referenced by check_options(), inetd_connection(), and new_session().

◆ background

int statserv_options_block::background

auto daemon

Definition at line 362 of file backend.h.

Referenced by check_options(), and statserv_sc_main().

◆ bend_close

void(* statserv_options_block::bend_close) (void *handle)

◆ bend_init

bend_initresult*(* statserv_options_block::bend_init) (bend_initrequest *r)

Definition at line 351 of file backend.h.

Referenced by process_initRequest(), srw_bend_init(), and statserv_main().

◆ bend_start

void(* statserv_options_block::bend_start) (struct statserv_options_block *p)

Definition at line 343 of file backend.h.

Referenced by xml_config_bend_start().

◆ bend_stop

void(* statserv_options_block::bend_stop) (struct statserv_options_block *p)

Definition at line 344 of file backend.h.

Referenced by listener(), and xml_config_bend_stop().

◆ cert_fname

char statserv_options_block::cert_fname[BEND_NAME_MAX]

SSL certificate fname

Definition at line 363 of file backend.h.

Referenced by add_listener(), and check_options().

◆ check_ip

int(* statserv_options_block::check_ip) (void *cd, const char *addr, int len, int type)

Definition at line 346 of file backend.h.

Referenced by listener().

◆ configname

char statserv_options_block::configname[BEND_NAME_MAX]

◆ daemon_name

char statserv_options_block::daemon_name[BEND_NAME_MAX]

Definition at line 347 of file backend.h.

Referenced by check_options(), and listener().

◆ default_proto

enum oid_proto statserv_options_block::default_proto

PROTO_SR or PROTO_Z3950

Definition at line 337 of file backend.h.

Referenced by check_options(), and statserv_sc_main().

◆ dynamic

int statserv_options_block::dynamic

fork on incoming requests

Definition at line 333 of file backend.h.

Referenced by add_listener(), check_options(), listener(), and statserv_sc_main().

◆ handle

void* statserv_options_block::handle

Handle

Definition at line 350 of file backend.h.

◆ idle_timeout

int statserv_options_block::idle_timeout

how many minutes to wait before closing

Definition at line 339 of file backend.h.

Referenced by check_options(), and process_initRequest().

◆ inetd

int statserv_options_block::inetd

Do we use the inet daemon or not

Definition at line 348 of file backend.h.

Referenced by check_options(), and statserv_sc_main().

◆ keepalive

int statserv_options_block::keepalive

keep alive if HTTP 1.1 (default: 1)

Definition at line 365 of file backend.h.

Referenced by check_options(), and process_http_request().

◆ logfile

char statserv_options_block::logfile[BEND_NAME_MAX]

file for diagnostic output

Definition at line 337 of file backend.h.

Referenced by check_options().

◆ maxrecordsize

int statserv_options_block::maxrecordsize

maximum value for negotiation

Definition at line 340 of file backend.h.

Referenced by check_options(), control_association(), and xml_config_read().

◆ one_shot

int statserv_options_block::one_shot

one session then exit(1)

Definition at line 335 of file backend.h.

Referenced by check_options(), listener(), and new_session().

◆ options_func

int(* statserv_options_block::options_func) (int argc, char **argv)

Definition at line 345 of file backend.h.

Referenced by statserv_sc_main().

◆ pid_fname

char statserv_options_block::pid_fname[BEND_NAME_MAX]

pid fname

Definition at line 361 of file backend.h.

Referenced by check_options(), and statserv_sc_main().

◆ setuid

char statserv_options_block::setuid[BEND_NAME_MAX]

setuid to this user after binding

Definition at line 342 of file backend.h.

Referenced by check_options(), and statserv_sc_main().

◆ threads

int statserv_options_block::threads

use threads

Definition at line 334 of file backend.h.

Referenced by add_listener(), check_options(), listener(), and new_session().

◆ xml_config

char statserv_options_block::xml_config[BEND_NAME_MAX]

The documentation for this struct was generated from the following file: