YAZ  5.34.0
Data Structures | Macros | Typedefs | Enumerations | Functions
backend.h File Reference

Header for GFS. More...

#include <yaz/yconfig.h>
#include <yaz/proto.h>
#include <yaz/srw.h>
#include <yaz/oid_db.h>

Go to the source code of this file.

Data Structures

struct  bend_search_rr
 Information for Z39.50/SRU search handler. More...
 
struct  bend_present_rr
 Information for present handler. Does not replace bend_fetch. More...
 
struct  bend_fetch_rr
 Information for fetch record handler. More...
 
struct  scan_entry
 Information for scan entry. More...
 
struct  bend_scan_rr
 Information for SRU / Z39.50 scan handler. More...
 
struct  bend_update_rr
 Information for SRU record update handler. More...
 
struct  bend_delete_rr
 Information for Z39.50 delete result set handler. More...
 
struct  bend_sort_rr
 Information for Z39.50 sort handler. More...
 
struct  bend_esrequest_rr
 Information for Z39.50 extended services handler. More...
 
struct  bend_segment_rr
 Information for Z39.50 segment handler. More...
 
struct  bend_explain_rr
 Information for SRU Explain handler. More...
 
struct  bend_initrequest
 Information for the Init handler. More...
 
struct  bend_initresult
 result for init handler (must be filled by handler) More...
 
struct  statserv_options_block
 control block for server More...
 

Macros

#define BEND_NAME_MAX   1024
 

Typedefs

typedef struct associationbend_association
 
typedef struct bend_fetch_rr bend_fetch_rr
 Information for fetch record handler. More...
 
typedef struct bend_scan_rr bend_scan_rr
 Information for SRU / Z39.50 scan handler. More...
 
typedef struct bend_update_rr bend_update_rr
 Information for SRU record update handler. More...
 
typedef struct bend_delete_rr bend_delete_rr
 Information for Z39.50 delete result set handler. More...
 
typedef struct bend_sort_rr bend_sort_rr
 Information for Z39.50 sort handler. More...
 
typedef struct bend_esrequest_rr bend_esrequest_rr
 Information for Z39.50 extended services handler. More...
 
typedef struct bend_segment_rr bend_segment_rr
 Information for Z39.50 segment handler. More...
 
typedef struct bend_initrequest bend_initrequest
 Information for the Init handler. More...
 
typedef struct bend_initresult bend_initresult
 result for init handler (must be filled by handler) More...
 
typedef struct statserv_options_block statserv_options_block
 control block for server More...
 

Enumerations

enum  bend_scan_status { BEND_SCAN_SUCCESS , BEND_SCAN_PARTIAL }
 

Functions

int statserv_main (int argc, char **argv, bend_initresult *(*bend_init)(bend_initrequest *r), void(*bend_close)(void *handle))
 
statserv_options_blockstatserv_getcontrol (void)
 
void statserv_setcontrol (statserv_options_block *block)
 
int check_ip_tcpd (void *cd, const char *addr, int len, int type)
 
int bend_assoc_is_alive (bend_association assoc)
 

Detailed Description

Header for GFS.

This header includes all public definitions for the Generic Frontend Server (GFS).

Definition in file backend.h.

Macro Definition Documentation

◆ BEND_NAME_MAX

#define BEND_NAME_MAX   1024

Definition at line 328 of file backend.h.

Typedef Documentation

◆ bend_association

typedef struct association* bend_association

Definition at line 46 of file backend.h.

◆ bend_delete_rr

Information for Z39.50 delete result set handler.

◆ bend_esrequest_rr

Information for Z39.50 extended services handler.

◆ bend_fetch_rr

typedef struct bend_fetch_rr bend_fetch_rr

Information for fetch record handler.

◆ bend_initrequest

Information for the Init handler.

This includes both request information (to be read) and response information which should be set by the bend_init handler

◆ bend_initresult

result for init handler (must be filled by handler)

◆ bend_scan_rr

typedef struct bend_scan_rr bend_scan_rr

Information for SRU / Z39.50 scan handler.

◆ bend_segment_rr

Information for Z39.50 segment handler.

◆ bend_sort_rr

typedef struct bend_sort_rr bend_sort_rr

Information for Z39.50 sort handler.

◆ bend_update_rr

Information for SRU record update handler.

◆ statserv_options_block

control block for server

Enumeration Type Documentation

◆ bend_scan_status

Enumerator
BEND_SCAN_SUCCESS 

ok

BEND_SCAN_PARTIAL 

not all entries could be found

Definition at line 127 of file backend.h.

Function Documentation

◆ bend_assoc_is_alive()

int bend_assoc_is_alive ( bend_association  assoc)

Definition at line 3550 of file seshigh.c.

References ASSOC_DEAD, association::client_chan, iochan_is_alive(), and association::state.

Referenced by check_slow().

◆ check_ip_tcpd()

int check_ip_tcpd ( void *  cd,
const char *  addr,
int  len,
int  type 
)

Definition at line 56 of file tcpdchk.c.

References type, yaz_log(), and YLOG_DEBUG.

◆ statserv_getcontrol()

statserv_options_block* statserv_getcontrol ( void  )

Definition at line 1215 of file statserv.c.

References control_block, and current_control_block.

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

◆ statserv_main()

int statserv_main ( int  argc,
char **  argv,
bend_initresult *(*)(bend_initrequest *r)  bend_init,
void(*)(void *handle)  bend_close 
)

◆ statserv_setcontrol()

void statserv_setcontrol ( statserv_options_block block)