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

Typedefs

typedef struct requestbend_request
typedef struct associationbend_association

Enumerations

enum  bend_scan_status { BEND_SCAN_SUCCESS, BEND_SCAN_PARTIAL }

Functions

void bend_request_send (bend_association a, bend_request req, Z_APDU *res)
bend_request bend_request_mk (bend_association a)
void bend_request_destroy (bend_request *req)
Z_ReferenceIdbend_request_getid (ODR odr, bend_request req)
int bend_backend_respond (bend_association a, bend_request req)
void bend_request_setdata (bend_request r, void *p)
void * bend_request_getdata (bend_request r)
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.


Typedef Documentation

typedef struct association* bend_association

Definition at line 47 of file backend.h.

typedef struct request* bend_request

Definition at line 46 of file backend.h.


Enumeration Type Documentation

Enumerator:
BEND_SCAN_SUCCESS 
BEND_SCAN_PARTIAL 

Definition at line 123 of file backend.h.


Function Documentation

int bend_assoc_is_alive ( bend_association  assoc  ) 

Definition at line 3527 of file seshigh.c.

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

Referenced by ztest_search().

int bend_backend_respond ( bend_association  a,
bend_request  req 
)

Definition at line 3403 of file seshigh.c.

References yaz_log(), and YLOG_WARN.

void bend_request_destroy ( bend_request req  ) 

Definition at line 3396 of file seshigh.c.

References nmem_destroy(), and request_release().

void* bend_request_getdata ( bend_request  r  ) 

Definition at line 3418 of file seshigh.c.

References request::clientData.

Z_ReferenceId* bend_request_getid ( ODR  odr,
bend_request  req 
)

Definition at line 3384 of file seshigh.c.

References odr_oct::buf, request::len_refid, odr_malloc(), and request::refid.

bend_request bend_request_mk ( bend_association  a  ) 

Definition at line 3377 of file seshigh.c.

References nmem_create(), association::outgoing, request_get(), and request::request_mem.

void bend_request_send ( bend_association  a,
bend_request  req,
Z_APDU res 
)

Definition at line 3372 of file seshigh.c.

void bend_request_setdata ( bend_request  r,
void *  p 
)

Definition at line 3413 of file seshigh.c.

References request::clientData.

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

Definition at line 52 of file tcpdchk.c.

References statserv_options_block::daemon_name, yaz_log(), and YLOG_DEBUG.

statserv_options_block* statserv_getcontrol ( void   ) 

Definition at line 1162 of file statserv.c.

Referenced by destroy_association().

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  ) 

Definition at line 1182 of file statserv.c.

Referenced by control_association().


Generated on Wed Jun 18 11:17:00 2008 for YAZ by  doxygen 1.5.6