/* This file is part of Metaproxy.
- Copyright (C) 2005-2011 Index Data
+ Copyright (C) 2005-2013 Index Data
Metaproxy is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
#include <sstream>
+namespace mp = metaproxy_1;
namespace yf = mp::filter;
namespace metaproxy_1 {
return;
}
package.session().close();
-
+
Z_GDU *zgdu = package.request().get();
-
+
if (!zgdu)
return;
-
+
//std::string message("BOUNCE ");
- std::ostringstream message;
+ std::ostringstream message;
message << "BOUNCE " << *zgdu;
-
- metaproxy_1::odr odr;
-
+
+ metaproxy_1::odr odr;
+
if (zgdu->which == Z_GDU_Z3950)
{
Z_APDU *apdu_res = 0;
else if (zgdu->which == Z_GDU_HTTP_Request)
{
Z_GDU *zgdu_res = 0;
- zgdu_res
- = odr.create_HTTP_Response(package.session(),
+ zgdu_res
+ = odr.create_HTTP_Response(package.session(),
zgdu->u.HTTP_Request, 400);
-
+
package.response() = zgdu_res;
}
else if (zgdu->which == Z_GDU_HTTP_Response)
{
}
-
+
return;
}