Changeset 9924


Ignore:
Timestamp:
2005-05-23T15:47:28+12:00 (19 years ago)
Author:
davidb
Message:

z3950_server (and associated names) renamed to z3950_proxy to better reflect
what was being accomplished. For the Z39.50 client receptionist this
code performs the work of communicating with a Z39.50 server. It is not
actually a server itself. The distinction is important with the introduction
of Z39.50 server support for greenstone (in colsrvr). That really is a
server, and so this renaming also helps reduce possible misunderstandings
and name conflicts.

Location:
trunk/gsdl/src/recpt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/z3950proto.cpp

    r9620 r9924  
    5454}
    5555
    56 void z3950proto::add_server (z3950_server& zserver) {
     56void z3950proto::add_server (z3950_proxy& zserver) {
    5757
    5858  // append the new server
     
    6464  struct z3950cfg *here;
    6565  struct z3950cfg *oldhere;
    66   z3950_server *zserver;
     66  z3950_proxy *zserver;
    6767  ShortColInfo_t *tempinfo;
    6868
     
    100100  // the parser will have already spat out any errors.
    101101
    102   // now create z3950servers for each structure in server_list
     102  // now create z3950 proxies for each structure in server_list
    103103  here=zserver_list;
    104104  while (here!=NULL) {
    105     zserver=new z3950_server;
     105    zserver=new z3950_proxy;
    106106    tempinfo=new ShortColInfo_t;
    107107
     
    188188                      ostream &/*logout*/) {
    189189
    190   z3950_server_array::iterator here = zservers.begin();
    191   z3950_server_array::iterator end = zservers.end();
     190  z3950_proxy_array::iterator here = zservers.begin();
     191  z3950_proxy_array::iterator end = zservers.end();
    192192  while (here != end) {
    193193    collist.push_back((*here)->getName());
     
    198198void z3950proto::has_collection (const text_t &collection, bool &hascollection,
    199199                 comerror_t &/*err*/, ostream &/*logout*/) {
    200   z3950_server_array::iterator here = zservers.begin();
    201   z3950_server_array::iterator end = zservers.end();
     200  z3950_proxy_array::iterator here = zservers.begin();
     201  z3950_proxy_array::iterator end = zservers.end();
    202202  while (here != end) {
    203203    if((*here)->getName()==collection) {
     
    224224  err=noError;
    225225
    226   z3950_server_array::iterator here = zservers.begin();
    227   z3950_server_array::iterator end = zservers.end();
     226  z3950_proxy_array::iterator here = zservers.begin();
     227  z3950_proxy_array::iterator end = zservers.end();
    228228  while (here != end) {
    229229    if((*here)->getName()==collection) {
     
    321321
    322322  // get relevant "collection"
    323   z3950_server_array::iterator zserver = zservers.begin();
    324   z3950_server_array::iterator zend = zservers.end();
     323  z3950_proxy_array::iterator zserver = zservers.begin();
     324  z3950_proxy_array::iterator zend = zservers.end();
    325325  while (zserver != zend) {
    326326    if((*zserver)->getName()==collection) {
     
    480480        text_t doctext="unneeded";
    481481        /* following variables aren't used, as our query result has been
    482            cached in z3950server.cpp (but really we shouldn't know that
     482           cached in z3950proxy.cpp (but really we shouldn't know that
    483483           here...) But for the NullFilter, we don't get given these
    484484           again in the request, so for now we'll take advantage of this.*/
     
    564564
    565565  // get relevant "collection"
    566   z3950_server_array::iterator zserver = zservers.begin();
    567   z3950_server_array::iterator zend = zservers.end();
     566  z3950_proxy_array::iterator zserver = zservers.begin();
     567  z3950_proxy_array::iterator zend = zservers.end();
    568568  while (zserver != zend) {
    569569    if((*zserver)->getName()==collection) {
  • trunk/gsdl/src/recpt/z3950proto.h

    r7607 r9924  
    2828
    2929#include "recptproto.h"
    30 #include "z3950server.h"
     30#include "z3950proxy.h"
    3131
    3232class z3950proto : public recptproto {
    3333protected:
    3434  int zserver_count;
    35   z3950_server_array zservers;
     35  z3950_proxy_array zservers;
    3636public:
    3737  z3950proto();
     
    4444  */
    4545 
    46   void add_server(z3950_server& zserver);
     46  void add_server(z3950_proxy& zserver);
    4747
    4848  void read_config_file(const text_t &filename, const text_t &errfile);
Note: See TracChangeset for help on using the changeset viewer.