metaproxy-moved-to-github.git
18 years agoMake yp2 program
Adam Dickmeiss [Mon, 16 Jan 2006 11:22:56 +0000 (11:22 +0000)]
Make yp2 program

18 years agoNew -- used only for validating configuration files against schema.
Mike Taylor [Mon, 16 Jan 2006 11:21:59 +0000 (11:21 +0000)]
New -- used only for validating configuration files against schema.

18 years ago<threads> element is optional within <filter type="frontend">.
Mike Taylor [Mon, 16 Jan 2006 11:21:38 +0000 (11:21 +0000)]
<threads> element is optional within <filter type="frontend">.
This allows config0.xml to validate.

18 years agosearch+present functional for multi filter
Adam Dickmeiss [Mon, 16 Jan 2006 01:10:19 +0000 (01:10 +0000)]
search+present functional for multi filter

18 years agoConfig for filter multi
Adam Dickmeiss [Sun, 15 Jan 2006 20:03:40 +0000 (20:03 +0000)]
Config for filter multi

18 years agoAdded filter multi. init+search operational
Adam Dickmeiss [Sun, 15 Jan 2006 20:03:14 +0000 (20:03 +0000)]
Added filter multi. init+search operational

18 years agoUse FrontendPtr in virt_db filter
Adam Dickmeiss [Sat, 14 Jan 2006 08:38:57 +0000 (08:38 +0000)]
Use FrontendPtr in virt_db filter

18 years agoNew
Mike Taylor [Fri, 13 Jan 2006 16:28:00 +0000 (16:28 +0000)]
New

18 years agofix indentation
Mike Taylor [Fri, 13 Jan 2006 16:27:14 +0000 (16:27 +0000)]
fix indentation

18 years agoPut proper reference IDs in response PDUs properly.
Adam Dickmeiss [Fri, 13 Jan 2006 15:09:35 +0000 (15:09 +0000)]
Put proper reference IDs in response PDUs properly.
Re-use session in filter virt_db when that is possible.
Filter virt_db offers named result sets - even for backends
that don't support it.

18 years agoAdded check for -ldl. Libtool does not do it - sometimes
Adam Dickmeiss [Fri, 13 Jan 2006 12:46:06 +0000 (12:46 +0000)]
Added check for -ldl. Libtool does not do it - sometimes

18 years agoPut Virt_db private classes inside Virt_db scope
Adam Dickmeiss [Thu, 12 Jan 2006 14:45:04 +0000 (14:45 +0000)]
Put Virt_db private classes inside Virt_db scope

18 years agoPrepare for use-use in virt_db filter
Adam Dickmeiss [Thu, 12 Jan 2006 14:09:08 +0000 (14:09 +0000)]
Prepare for use-use in virt_db filter

18 years agoIgnore this test program
Adam Dickmeiss [Thu, 12 Jan 2006 14:08:41 +0000 (14:08 +0000)]
Ignore this test program

18 years agoAdded files and initial auth_simple filter
Adam Dickmeiss [Thu, 12 Jan 2006 10:04:34 +0000 (10:04 +0000)]
Added files and initial auth_simple filter

18 years agoClearer diagnostic.
Mike Taylor [Wed, 11 Jan 2006 17:57:38 +0000 (17:57 +0000)]
Clearer diagnostic.

18 years agoIgnore test_pipe prog
Adam Dickmeiss [Wed, 11 Jan 2006 14:59:45 +0000 (14:59 +0000)]
Ignore test_pipe prog

18 years agoImplemented yp2::xml::check_empty that serves as default
Adam Dickmeiss [Wed, 11 Jan 2006 14:58:28 +0000 (14:58 +0000)]
Implemented yp2::xml::check_empty that serves as default
configure method for filter (in which case no XML config is
allowed).

18 years agoMove methods jump_to_... and check_element_yp2 to xmlutil.
Adam Dickmeiss [Wed, 11 Jan 2006 13:13:49 +0000 (13:13 +0000)]
Move methods jump_to_... and check_element_yp2 to xmlutil.

18 years agoNamed routes for filter virt_db. Example in etc/config2.xml
Adam Dickmeiss [Wed, 11 Jan 2006 11:51:49 +0000 (11:51 +0000)]
Named routes for filter virt_db. Example in etc/config2.xml

18 years agoExtend log filter, so that message can be set
Adam Dickmeiss [Wed, 11 Jan 2006 08:53:52 +0000 (08:53 +0000)]
Extend log filter, so that message can be set

18 years agoDo not include router.hpp in filters
Adam Dickmeiss [Mon, 9 Jan 2006 21:20:15 +0000 (21:20 +0000)]
Do not include router.hpp in filters

18 years agoUse scoped_ptr for private data in FrontendNet. Allow threads to be set
Adam Dickmeiss [Mon, 9 Jan 2006 21:19:11 +0000 (21:19 +0000)]
Use scoped_ptr for private data in FrontendNet. Allow threads to be set

18 years agoAllow timeout to be specified for filter z3950_client
Adam Dickmeiss [Mon, 9 Jan 2006 18:19:09 +0000 (18:19 +0000)]
Allow timeout to be specified for filter z3950_client

18 years agoSimplify a little
Adam Dickmeiss [Mon, 9 Jan 2006 18:18:07 +0000 (18:18 +0000)]
Simplify a little

18 years agoMove real virt_db example to config1.xml. Imagined to config-imagine.xml
Adam Dickmeiss [Mon, 9 Jan 2006 15:35:18 +0000 (15:35 +0000)]
Move real virt_db example to config1.xml. Imagined to config-imagine.xml

18 years agoFilter virt_db reads XML config
Adam Dickmeiss [Mon, 9 Jan 2006 15:32:46 +0000 (15:32 +0000)]
Filter virt_db reads XML config

18 years agoQualify type with NS scope (apparently a difference between VS and GCC).
Adam Dickmeiss [Mon, 9 Jan 2006 14:47:09 +0000 (14:47 +0000)]
Qualify type with NS scope (apparently a difference between VS and GCC).

18 years agoUpdate WIN32 build.
Adam Dickmeiss [Mon, 9 Jan 2006 14:46:31 +0000 (14:46 +0000)]
Update WIN32 build.

18 years agoRemove unused code.
Adam Dickmeiss [Mon, 9 Jan 2006 13:53:13 +0000 (13:53 +0000)]
Remove unused code.

18 years agoRouterFleXML now reads XML simple config and make proper runtime
Adam Dickmeiss [Mon, 9 Jan 2006 13:43:59 +0000 (13:43 +0000)]
RouterFleXML now reads XML simple config and make proper runtime
routing. Program ex_router_flexml ../etc/config0.xml works as
expected. The router now creates a state object, RoutePos, for each
managed package. This object serves as a cursor/iterator for it.

18 years agoRouterFleXML now stores routes and filters internally.
Adam Dickmeiss [Thu, 5 Jan 2006 16:39:37 +0000 (16:39 +0000)]
RouterFleXML now stores routes and filters internally.

18 years agoIndentation
Adam Dickmeiss [Thu, 5 Jan 2006 16:39:06 +0000 (16:39 +0000)]
Indentation

18 years agoRename yp2::FilterFactory to yp2::FactoryFilter
Adam Dickmeiss [Wed, 4 Jan 2006 14:30:51 +0000 (14:30 +0000)]
Rename yp2::FilterFactory to yp2::FactoryFilter

18 years agoFurther work on filter registration in RouterFleXML
Adam Dickmeiss [Wed, 4 Jan 2006 14:15:45 +0000 (14:15 +0000)]
Further work on filter registration in RouterFleXML

18 years agoMake public yp2_filter_struct non-const. If not, the linker symbol
Adam Dickmeiss [Wed, 4 Jan 2006 11:55:31 +0000 (11:55 +0000)]
Make public yp2_filter_struct non-const. If not, the linker symbol
is screwed. Test for double dl-load in FilterFactory.

18 years agoAll filters declare a yp2_filter_struct - used for both static and
Adam Dickmeiss [Wed, 4 Jan 2006 11:19:04 +0000 (11:19 +0000)]
All filters declare a yp2_filter_struct - used for both static and
dynamic loading. RouterFlexML updated to use FilterFactory to load
modules.

18 years agoExtend close handling so that multiple requests in queue are skipped
Adam Dickmeiss [Tue, 3 Jan 2006 15:34:10 +0000 (15:34 +0000)]
Extend close handling so that multiple requests in queue are skipped
or at least stopped. Handle connect fail/timeout as well.

18 years agoHandle close of session in Z39.50 client.
Adam Dickmeiss [Mon, 2 Jan 2006 14:33:42 +0000 (14:33 +0000)]
Handle close of session in Z39.50 client.

18 years agoIgnore generated file "tstdl".
Mike Taylor [Tue, 20 Dec 2005 09:16:56 +0000 (09:16 +0000)]
Ignore generated file "tstdl".

18 years agoClose virtual targets properly when close package is received.
Adam Dickmeiss [Mon, 19 Dec 2005 08:42:59 +0000 (08:42 +0000)]
Close virtual targets properly when close package is received.

18 years agoOnly if HAVE_DL_SUPPORT is enabled the factory test for dl loaded
Adam Dickmeiss [Sun, 11 Dec 2005 17:25:59 +0000 (17:25 +0000)]
Only if HAVE_DL_SUPPORT is enabled the factory test for dl loaded
filters is executed. Note that configure has been changed, so running
buildconf.sh is necessary.

18 years agoUse boost::scoped_ptr for Log filter
Adam Dickmeiss [Sun, 11 Dec 2005 17:23:05 +0000 (17:23 +0000)]
Use boost::scoped_ptr for Log filter

18 years agoSimplify template filter a bit and annotate a little
Adam Dickmeiss [Sun, 11 Dec 2005 17:20:18 +0000 (17:20 +0000)]
Simplify template filter a bit and annotate a little

18 years agoDont try to build ex_libxml2_conf
Adam Dickmeiss [Sat, 10 Dec 2005 10:07:15 +0000 (10:07 +0000)]
Dont try to build ex_libxml2_conf

18 years agoLoadable filter support for FilterFactory using dlopen/dlsym. Only
Adam Dickmeiss [Sat, 10 Dec 2005 09:59:10 +0000 (09:59 +0000)]
Loadable filter support for FilterFactory using dlopen/dlsym. Only
works for Linux and similar systems. Added a test it in
test_filter_factory. Also extended test_filter_factory to call the
loadable filters (to ensure they are _right_).

18 years agoEnable virt db for ex_filter_frontend_net
Adam Dickmeiss [Fri, 9 Dec 2005 11:27:59 +0000 (11:27 +0000)]
Enable virt db for ex_filter_frontend_net

18 years agoImprove element checking in XML config reader
Adam Dickmeiss [Thu, 8 Dec 2005 22:32:57 +0000 (22:32 +0000)]
Improve element checking in XML config reader

18 years agoMake exception class for XML router
Adam Dickmeiss [Thu, 8 Dec 2005 15:34:08 +0000 (15:34 +0000)]
Make exception class for XML router

18 years agono inline RouterFlexXML Rep functions
Adam Dickmeiss [Thu, 8 Dec 2005 15:10:34 +0000 (15:10 +0000)]
no inline RouterFlexXML  Rep functions

18 years agoIn tests use BOOST_AUTO_UNIT_TEST instead of BOOST_AUTO_TEST_CASE
Adam Dickmeiss [Fri, 2 Dec 2005 12:21:07 +0000 (12:21 +0000)]
In tests use BOOST_AUTO_UNIT_TEST instead of BOOST_AUTO_TEST_CASE
so what the system works with 1.32 an 1.33 of the Boost libs. This
should make things compile fine on Debian Sarge - currently stable.
Remove dead test ex_libxml2_conf.

18 years agoReformat
Adam Dickmeiss [Fri, 2 Dec 2005 11:05:08 +0000 (11:05 +0000)]
Reformat

18 years agoTwo phase test for libboost-test-dev
Adam Dickmeiss [Fri, 2 Dec 2005 11:04:56 +0000 (11:04 +0000)]
Two phase test for libboost-test-dev

18 years agoAdd filter_session_shared and package objs
Adam Dickmeiss [Wed, 23 Nov 2005 14:48:44 +0000 (14:48 +0000)]
Add filter_session_shared and package objs

19 years agoStarted work on shared session filter.
Adam Dickmeiss [Mon, 14 Nov 2005 23:35:22 +0000 (23:35 +0000)]
Started work on shared session filter.

19 years agoFactor implementation of Package to .cpp.
Adam Dickmeiss [Fri, 11 Nov 2005 15:00:25 +0000 (15:00 +0000)]
Factor implementation of Package to .cpp.

19 years agoSeparate imp+rep from public interfaces for some clases, Routers,
Adam Dickmeiss [Thu, 10 Nov 2005 23:10:42 +0000 (23:10 +0000)]
Separate imp+rep from public interfaces for some clases, Routers,
Filters, .. Still need to do session+package properly.

19 years agoAdded test_pipe in list or programs. Currently all programs link with
Adam Dickmeiss [Tue, 8 Nov 2005 08:56:39 +0000 (08:56 +0000)]
Added test_pipe in list or programs. Currently all programs link with
the DLL OBJS, not the import lib. That must be fixex, but it would be
nice if we could get around the dll-export mess (YAZ_EXPORT in YAZ) by
a Compiler option.

19 years agoCall WSAStartup. Use port in test_pipe test
Adam Dickmeiss [Tue, 8 Nov 2005 08:55:41 +0000 (08:55 +0000)]
Call WSAStartup. Use port in test_pipe test

19 years agoInclude sys/socket.h when available
Adam Dickmeiss [Mon, 7 Nov 2005 22:46:42 +0000 (22:46 +0000)]
Include sys/socket.h when available

19 years agoUpdated to use pipe/test_pipe
Adam Dickmeiss [Mon, 7 Nov 2005 22:43:48 +0000 (22:43 +0000)]
Updated to use pipe/test_pipe

19 years agoPort Pipe class to windows.
Adam Dickmeiss [Mon, 7 Nov 2005 22:43:17 +0000 (22:43 +0000)]
Port Pipe class to windows.

19 years agoAdded include of string
Adam Dickmeiss [Mon, 7 Nov 2005 22:04:15 +0000 (22:04 +0000)]
Added include of string

19 years agoCalls to pipe(2) replaced with usage of Pipe class. Now passes
Adam Dickmeiss [Mon, 7 Nov 2005 21:57:10 +0000 (21:57 +0000)]
Calls to pipe(2) replaced with usage of Pipe class. Now passes
all tests on Unix.

19 years agoAdded header check for sys/select.h and sys/socket.h
Adam Dickmeiss [Mon, 7 Nov 2005 21:52:32 +0000 (21:52 +0000)]
Added header check for sys/select.h and sys/socket.h

19 years agoFirst work on Pipe class
Adam Dickmeiss [Mon, 7 Nov 2005 12:32:01 +0000 (12:32 +0000)]
First work on Pipe class

19 years agoMake a few internal classes part of yp2 ns
Adam Dickmeiss [Mon, 7 Nov 2005 12:31:43 +0000 (12:31 +0000)]
Make a few internal classes part of yp2 ns

19 years agoMove includes to implementation file
Adam Dickmeiss [Mon, 7 Nov 2005 12:31:05 +0000 (12:31 +0000)]
Move includes to implementation file

19 years agoPimpl the ThreadPoolSocketObserver class so we can make code depending
Adam Dickmeiss [Fri, 4 Nov 2005 11:06:52 +0000 (11:06 +0000)]
Pimpl the ThreadPoolSocketObserver class so we can make code depending
on OS/config.

19 years agoCheck for unix/windows headers
Adam Dickmeiss [Fri, 4 Nov 2005 10:27:51 +0000 (10:27 +0000)]
Check for unix/windows headers

19 years agoAdded makefile for MS VS. Compiles OK for Visual Studio 2003 / 7.1.
Adam Dickmeiss [Thu, 3 Nov 2005 14:45:15 +0000 (14:45 +0000)]
Added makefile for MS VS. Compiles OK for Visual Studio 2003 / 7.1.
We still need to properly port the thread_pool_observer object _ due
to the use of UNIX pipes.

19 years agoLet configure create Jamfile
Adam Dickmeiss [Mon, 31 Oct 2005 22:47:11 +0000 (22:47 +0000)]
Let configure create Jamfile

19 years agoAdded Jamfile for project which makes example programs + yp2 lib
Adam Dickmeiss [Mon, 31 Oct 2005 22:44:55 +0000 (22:44 +0000)]
Added Jamfile for project which makes example programs + yp2 lib

19 years agoxml configuration dom parsing finished, still missing connection to filter factory...
Marc Cromme [Mon, 31 Oct 2005 11:59:08 +0000 (11:59 +0000)]
xml configuration dom parsing finished, still missing connection to filter factory and filter lists

19 years agostd::string type() function taken out of all filter classes again
Marc Cromme [Mon, 31 Oct 2005 09:40:18 +0000 (09:40 +0000)]
std::string type() function taken out of all filter classes again

19 years agoAdded methods create_{close,initResponse} for odr class.
Adam Dickmeiss [Sun, 30 Oct 2005 18:51:20 +0000 (18:51 +0000)]
Added methods create_{close,initResponse} for odr class.

19 years agoImplemented yp2::odr which is a noncopyable wrapper for YAZ' ODR.
Adam Dickmeiss [Sun, 30 Oct 2005 17:13:36 +0000 (17:13 +0000)]
Implemented yp2::odr which is a noncopyable wrapper for YAZ' ODR.

19 years agoProperly lock Z39.50 sessions
Adam Dickmeiss [Sun, 30 Oct 2005 16:39:18 +0000 (16:39 +0000)]
Properly lock Z39.50 sessions

19 years agomaking filter factory non-copyable
Marc Cromme [Sat, 29 Oct 2005 22:51:11 +0000 (22:51 +0000)]
making filter factory non-copyable

19 years agofilter factory in working shape, see example in test_filer_factory.cpp
Marc Cromme [Sat, 29 Oct 2005 22:23:36 +0000 (22:23 +0000)]
filter factory in working shape, see example in test_filer_factory.cpp
added member function const std::string type() const to all filters in both hpp and test code

19 years agofirst functional filter factory implementation plus test case added
Marc Cromme [Sat, 29 Oct 2005 17:58:14 +0000 (17:58 +0000)]
first functional filter factory implementation plus test case added

19 years agoUsing boost::scoped_ptr for pimpl/rep for some filters
Adam Dickmeiss [Sat, 29 Oct 2005 15:54:29 +0000 (15:54 +0000)]
Using boost::scoped_ptr for pimpl/rep for some filters

19 years agohacking filter factory, need to go to meeting and stop here, does not work yet
Marc Cromme [Fri, 28 Oct 2005 10:35:30 +0000 (10:35 +0000)]
hacking filter factory, need to go to meeting and stop here, does not work yet

19 years agoadded namespace check
Marc Cromme [Thu, 27 Oct 2005 11:36:21 +0000 (11:36 +0000)]
added namespace check

19 years agoxml config file is now parsed using libxml2 dom tools, xmlreader functions thrown out
Marc Cromme [Wed, 26 Oct 2005 21:30:54 +0000 (21:30 +0000)]
xml config file is now parsed using libxml2 dom tools, xmlreader functions thrown out

19 years agoExperiments with session map template.
Adam Dickmeiss [Wed, 26 Oct 2005 18:53:49 +0000 (18:53 +0000)]
Experiments with session map template.

19 years agoMore tests/examples to ignore
Adam Dickmeiss [Wed, 26 Oct 2005 18:53:16 +0000 (18:53 +0000)]
More tests/examples to ignore

19 years agostarted on RouterFleXML class, still shaky and rudimentary
Marc Cromme [Wed, 26 Oct 2005 14:12:00 +0000 (14:12 +0000)]
started on RouterFleXML class, still shaky and rudimentary

19 years agochanged call to RouterChain.append instead of RouterChain.rule
Marc Cromme [Wed, 26 Oct 2005 10:55:26 +0000 (10:55 +0000)]
changed call to RouterChain.append instead of RouterChain.rule

19 years agomoved RouterChain class out of router.hpp file into own router_chain.hpp class
Marc Cromme [Wed, 26 Oct 2005 10:21:03 +0000 (10:21 +0000)]
moved RouterChain class out of router.hpp file into own router_chain.hpp class

19 years agoadditional xml parsing
Marc Cromme [Wed, 26 Oct 2005 10:20:15 +0000 (10:20 +0000)]
additional xml parsing

19 years agoFix bug in virt_db introduced in previous commit regarding result
Adam Dickmeiss [Tue, 25 Oct 2005 23:04:06 +0000 (23:04 +0000)]
Fix bug in virt_db introduced in previous commit regarding result
set creation. Also changed diagnostic when database map does not exist.

19 years agoFor filter_virt_db return proper diagnostics if backend closes connection
Adam Dickmeiss [Tue, 25 Oct 2005 22:44:39 +0000 (22:44 +0000)]
For filter_virt_db return proper diagnostics if backend closes connection

19 years agoAdded test for filter backend_test.
Adam Dickmeiss [Tue, 25 Oct 2005 21:32:28 +0000 (21:32 +0000)]
Added test for filter backend_test.

19 years agoExperimented with template for session management in filter
Adam Dickmeiss [Tue, 25 Oct 2005 21:32:01 +0000 (21:32 +0000)]
Experimented with template for session management in filter
backend_test_cpp. Removed p2.cpp.

19 years agoLog filter has alternative constructor with custom msg
Adam Dickmeiss [Tue, 25 Oct 2005 16:01:36 +0000 (16:01 +0000)]
Log filter has alternative constructor with custom msg

19 years agoMore diagnostics for close
Adam Dickmeiss [Tue, 25 Oct 2005 16:01:14 +0000 (16:01 +0000)]
More diagnostics for close

19 years agoUse fix present handling to use backend session ID
Adam Dickmeiss [Tue, 25 Oct 2005 16:00:58 +0000 (16:00 +0000)]
Use fix present handling to use backend session ID

19 years agoUse virt_db filter in ex_filter_frontend_net program
Adam Dickmeiss [Tue, 25 Oct 2005 15:19:58 +0000 (15:19 +0000)]
Use virt_db filter in ex_filter_frontend_net program

19 years agoHandle Z39.50 Options better
Adam Dickmeiss [Tue, 25 Oct 2005 15:19:39 +0000 (15:19 +0000)]
Handle Z39.50 Options better