#include <filter_z3950_client.hpp>
Definition at line 28 of file filter_z3950_client.hpp.
◆ ~Z3950Client()
mp::filter::Z3950Client::~Z3950Client |
( |
| ) |
|
◆ Z3950Client()
mp::filter::Z3950Client::Z3950Client |
( |
| ) |
|
Definition at line 315 of file filter_z3950_client.cpp.
315 :
m_p(
new yf::Z3950Client::Rep)
317 m_p->m_connect_timeout_sec = 10;
318 m_p->m_init_timeout_sec = 10;
319 m_p->m_general_timeout_sec = 30;
320 m_p->m_max_sockets = 0;
321 m_p->m_max_sockets_timeout_sec = 15;
322 m_p->m_force_close =
false;
323 m_p->m_client_ip =
false;
324 m_p->m_bind_host =
false;
References m_p.
◆ configure()
void mp::filter::Z3950Client::configure |
( |
const xmlNode * |
ptr, |
|
|
bool |
test_only, |
|
|
const char * |
path |
|
) |
| |
Definition at line 665 of file filter_z3950_client.cpp.
668 for (ptr = ptr->children; ptr; ptr = ptr->next)
670 if (ptr->type != XML_ELEMENT_NODE)
672 if (!strcmp((
const char *) ptr->name,
"timeout"))
674 m_p->m_general_timeout_sec = mp::xml::get_int(ptr, 30);
676 else if (!strcmp((
const char *) ptr->name,
"connect-timeout"))
678 m_p->m_connect_timeout_sec = mp::xml::get_int(ptr, 10);
680 else if (!strcmp((
const char *) ptr->name,
"init-timeout"))
682 m_p->m_init_timeout_sec = mp::xml::get_int(ptr, 10);
684 else if (!strcmp((
const char *) ptr->name,
"max-sockets-timeout"))
686 m_p->m_max_sockets_timeout_sec = mp::xml::get_int(ptr, 15);
688 else if (!strcmp((
const char *) ptr->name,
"default_target"))
690 m_p->m_default_target = mp::xml::get_text(ptr);
692 else if (!strcmp((
const char *) ptr->name,
"force_target"))
694 m_p->m_force_target = mp::xml::get_text(ptr);
696 else if (!strcmp((
const char *) ptr->name,
"max-sockets"))
698 m_p->m_max_sockets = mp::xml::get_int(ptr, 0);
700 else if (!strcmp((
const char *) ptr->name,
"force_close"))
702 m_p->m_force_close = mp::xml::get_bool(ptr, 0);
704 else if (!strcmp((
const char *) ptr->name,
"client_ip"))
706 m_p->m_client_ip = mp::xml::get_bool(ptr, 0);
708 else if (!strcmp((
const char *) ptr->name,
"charset"))
710 m_p->m_charset = mp::xml::get_text(ptr);
712 else if (!strcmp((
const char *) ptr->name,
"bind_host"))
714 m_p->m_bind_host = mp::xml::get_bool(ptr, 0);
718 throw mp::filter::FilterException(
"Bad element "
719 + std::string((
const char *)
◆ process()
void mp::filter::Z3950Client::process |
( |
metaproxy_1::Package & |
package | ) |
const |
Definition at line 655 of file filter_z3950_client.cpp.
657 yf::Z3950Client::Assoc *c =
m_p->get_assoc(package);
660 m_p->send_and_receive(package, c);
661 m_p->release_assoc(package);
◆ m_p
boost::scoped_ptr<Rep> metaproxy_1::filter::Z3950Client::m_p |
|
private |
The documentation for this class was generated from the following files: