X-Git-Url: http://git.indexdata.com/?p=yazproxy-moved-to-github.git;a=blobdiff_plain;f=src%2Fyaz-proxy-main.cpp;h=b8a26d1c53baa8c61e49e4854c56780ad2f1d0b0;hp=f40c64ad7b86f6cd3217f97bdf37c8dc1f32c671;hb=d3c27d6b3d4e44988b40002c2f4cb8d51f56001a;hpb=e9a5a9feeb12335c668b73dbb6385908be6806f1 diff --git a/src/yaz-proxy-main.cpp b/src/yaz-proxy-main.cpp index f40c64a..b8a26d1 100644 --- a/src/yaz-proxy-main.cpp +++ b/src/yaz-proxy-main.cpp @@ -1,4 +1,4 @@ -/* $Id: yaz-proxy-main.cpp,v 1.12 2005-02-21 14:27:32 adam Exp $ +/* $Id: yaz-proxy-main.cpp,v 1.15 2005-06-08 13:29:03 adam Exp $ Copyright (c) 1998-2005, Index Data. This file is part of the yaz-proxy. @@ -56,6 +56,8 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include #endif +using namespace yazpp_1; + void usage(char *prog) { fprintf (stderr, "%s: [-c config] [-l log] [-a log] [-v level] [-t target] " @@ -194,7 +196,7 @@ static void proxy_xml_error_handler(void *ctx, const char *fmt, ...) } #endif -static void child_run(Yaz_SocketManager *m, int run) +static void child_run(SocketManager *m, int run) { #ifdef WIN32 #else @@ -282,8 +284,8 @@ int main(int argc, char **argv) #endif int cont = 1; int run = 1; - Yaz_SocketManager mySocketManager; - Yaz_Proxy proxy(new Yaz_PDU_Assoc(&mySocketManager)); + SocketManager mySocketManager; + Yaz_Proxy proxy(new PDU_Assoc(&mySocketManager), &mySocketManager); static_yaz_proxy = &proxy;