First WIN32 port of YAZ++.
[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.3  1999-02-02 14:01:21  adam
8  * First WIN32 port of YAZ++.
9  *
10  * Revision 1.2  1999/01/28 13:08:45  adam
11  * Yaz_PDU_Assoc better encapsulated. Memory leak fix in
12  * yaz-socket-manager.cc.
13  *
14  * Revision 1.1.1.1  1999/01/28 09:41:07  adam
15  * First implementation of YAZ++.
16  *
17  */
18
19 #include <log.h>
20
21 #include <yaz-socket-manager.h>
22 #include <yaz-pdu-assoc.h>
23 #include <yaz-proxy.h>
24
25 int main(int argc, char **argv)
26 {
27     Yaz_SocketManager mySocketManager;
28     Yaz_Proxy proxy(new Yaz_PDU_Assoc(&mySocketManager, 0));
29     
30     proxy.server("@:9999");
31     while (mySocketManager.processEvent() > 0)
32         ;
33     return 0;
34 }