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=4257c795bc6c2fb83d691c3321e16a339cc45899;hb=d3c27d6b3d4e44988b40002c2f4cb8d51f56001a;hpb=66663d272496cedff1da574891413f90ce716b85 diff --git a/src/yaz-proxy-main.cpp b/src/yaz-proxy-main.cpp index 4257c79..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.13 2005-05-30 20:09:21 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), &mySocketManager); + SocketManager mySocketManager; + Yaz_Proxy proxy(new PDU_Assoc(&mySocketManager), &mySocketManager); static_yaz_proxy = &proxy;