Changeset 1191 for branches/z3950-branch/gsdl/src/recpt/z3950server.h
- Timestamp:
- 2000-05-25T11:28:32+12:00 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/z3950-branch/gsdl/src/recpt/z3950server.h
r1174 r1191 8 8 protected: 9 9 text_t title; // Descriptive name 10 text_t z_initstr; // a string returned when the connection is initialised. 10 11 text_tmap meta; // metadata for this collection (ie server/database pair) 11 12 text_tmap about; // langauge/abouttext pair for collection. 12 13 ShortColInfo_t *info; // has (database) name, host and port 14 text_tarray *titles; 15 bool connect(); 16 bool connected; // tcp connection to the z39.50 server (target) 13 17 14 18 public: … … 21 25 void setInfo(ShortColInfo_t *newinfo) {info=newinfo;} 22 26 const ShortColInfo_t *getInfo() {return info;} 23 void addAbout(const text_t &lang, const text_t &abouttext); 24 const text_t &getAbout(const text_t &lang); 25 // now the functions that actually talk to the target (ie zserver) 26 // over tcp 27 text_t *connect_getAbout(); 27 void addcfgAbout(const text_t &lang, const text_t &abouttext); 28 bool getcfgAbout(const text_t &lang, text_t &abouttext); 29 // now the functions that actually talk to the target (ie zserver) over tcp 30 text_t &getzAbout(); // gets any name, id, MOTD, etc from server. 31 text_tarray *getbriefrecords(const text_t &query, 32 const int first, const int count, 33 int *nummatches, comerror_t &err); 34 /* only get one record at a time? (Eventually we could buffer them, but 35 for now... */ 36 bool getfullrecord(const int ID, text_t &rettitle, 37 text_t &rettext,comerror_t &err); 28 38 }; 29 39 30 typedef vector<z3950_server > z3950_server_array;40 typedef vector<z3950_server *> z3950_server_array; 31 41 32 42 #endif
Note:
See TracChangeset
for help on using the changeset viewer.