#include "config.hpp"
#include "filter_z3950_client.hpp"
#include <metaproxy/package.hpp>
#include <metaproxy/util.hpp>
#include <map>
#include <stdexcept>
#include <list>
#include <iostream>
#include <boost/thread/mutex.hpp>
#include <boost/thread/condition.hpp>
#include <boost/thread/xtime.hpp>
#include <yaz/zgdu.h>
#include <yaz/log.h>
#include <yaz/otherinfo.h>
#include <yaz/diagbib1.h>
#include <yaz/oid_db.h>
#include <yaz/charneg.h>
#include <yazpp/socket-manager.h>
#include <yazpp/pdu-assoc.h>
#include <yazpp/z-assoc.h>
Go to the source code of this file.
◆ filter_creator()
static mp::filter::Base* filter_creator |
( |
| ) |
|
|
static |
◆ set_charset_proposal()
static void set_charset_proposal |
( |
ODR |
odr, |
|
|
Z_InitRequest * |
req, |
|
|
const char * |
charset |
|
) |
| |
|
static |
Definition at line 491 of file filter_z3950_client.cpp.
493 Z_OtherInformation **p = &req->otherInfo;
494 Z_OtherInformationUnit *oi;
499 for (i = 0; i < (*p)->num_elements; i++)
501 Z_External *ext = (*p)->list[i]->information.externallyDefinedInfo;
502 if ((*p)->list[i]->which == Z_OtherInfo_externallyDefinedInfo
504 ext->which == Z_External_charSetandLanguageNegotiation)
508 if ((oi = yaz_oi_update(p, odr, 0, 0, 0)))
510 ODR_MASK_SET(req->options, Z_Options_negotiationModel);
511 oi->which = Z_OtherInfo_externallyDefinedInfo;
512 oi->information.externallyDefinedInfo =
513 yaz_set_proposal_charneg_list(odr,
",",
Referenced by metaproxy_1::filter::Z3950Client::Rep::send_and_receive().
◆ metaproxy_1_filter_z3950_client
struct metaproxy_1_filter_struct metaproxy_1_filter_z3950_client |