Initial revision
[yazpp-moved-to-github.git] / src / yaz-proxy-main.cpp
1 /*
2  * Copyright (c) 1998-1999, Index Data.
3  * See the file LICENSE for details.
4  * Sebastian Hammer, Adam Dickmeiss
5  * 
6  * $Log: yaz-proxy-main.cpp,v $
7  * Revision 1.1  1999-01-28 09:41:07  adam
8  * Initial revision
9  *
10  */
11
12 #include <yaz-socket-manager.h>
13 #include <yaz-pdu-assoc.h>
14 #include <yaz-proxy.h>
15
16 int main(int argc, char **argv)
17 {
18     Yaz_SocketManager mySocketManager;
19     Yaz_PDU_Assoc *my_PDU_Assoc = new Yaz_PDU_Assoc(&mySocketManager, 0);
20     Yaz_Proxy proxy(my_PDU_Assoc);
21     
22     proxy.server("@:9999");
23     while (mySocketManager.processEvent() > 0)
24         ;
25     return 0;
26 }