YAZ  5.23.1
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

#define BEND_NAME_MAX   1024

Definition at line 327 of file backend.h.

Referenced by option_copy().

Typedef Documentation

typedef struct association* bend_association

Definition at line 46 of file backend.h.

Information for Z39.50 delete result set handler.

Information for Z39.50 extended services handler.

typedef struct bend_fetch_rr bend_fetch_rr

Information for fetch record handler.

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

result for init handler (must be filled by handler)

typedef struct bend_scan_rr bend_scan_rr

Information for SRU / Z39.50 scan handler.

Information for Z39.50 segment handler.

typedef struct bend_sort_rr bend_sort_rr

Information for Z39.50 sort handler.

Information for SRU record update handler.

control block for server

Enumeration Type Documentation

Enumerator
BEND_SCAN_SUCCESS 

ok

BEND_SCAN_PARTIAL 

not all entries could be found

Definition at line 127 of file backend.h.

Function Documentation

int bend_assoc_is_alive ( bend_association  assoc)

Definition at line 3514 of file seshigh.c.

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

Referenced by check_slow().

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

Definition at line 56 of file tcpdchk.c.

References yaz_log(), and YLOG_DEBUG.

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().

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