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