projects
/
yazpp-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Proxy removes OtherInfo Proxy Address and Session ID. Other
[yazpp-moved-to-github.git]
/
src
/
yaz-server.cpp
diff --git
a/src/yaz-server.cpp
b/src/yaz-server.cpp
index
2d2c244
..
ec6133d
100644
(file)
--- a/
src/yaz-server.cpp
+++ b/
src/yaz-server.cpp
@@
-4,7
+4,11
@@
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: yaz-server.cpp,v $
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: yaz-server.cpp,v $
- * Revision 1.5 1999-04-09 11:46:57 adam
+ * Revision 1.6 1999-04-21 12:09:01 adam
+ * Many improvements. Modified to proxy server to work with "sessions"
+ * based on cookies.
+ *
+ * Revision 1.5 1999/04/09 11:46:57 adam
* Added object Yaz_Z_Assoc. Much more functional client.
*
* Revision 1.4 1999/03/23 14:17:57 adam
* Added object Yaz_Z_Assoc. Much more functional client.
*
* Revision 1.4 1999/03/23 14:17:57 adam
@@
-59,16
+63,19
@@
void MyServer::recv_Z_PDU(Z_APDU *apdu)
logf (LOG_LOG, "got presentRequest");
apdu = create_Z_PDU(Z_APDU_presentResponse);
send_Z_PDU(apdu);
logf (LOG_LOG, "got presentRequest");
apdu = create_Z_PDU(Z_APDU_presentResponse);
send_Z_PDU(apdu);
- stop = 1;
+ // stop = 1;
break;
}
}
IYaz_PDU_Observer *MyServer::clone(IYaz_PDU_Observable *the_PDU_Observable)
{
break;
}
}
IYaz_PDU_Observer *MyServer::clone(IYaz_PDU_Observable *the_PDU_Observable)
{
+ MyServer *new_server;
logf (LOG_LOG, "child no %d", m_no);
m_no++;
logf (LOG_LOG, "child no %d", m_no);
m_no++;
- return new MyServer(the_PDU_Observable);
+ new_server = new MyServer(the_PDU_Observable);
+ new_server->timeout(60);
+ return new_server;
}
MyServer::MyServer(IYaz_PDU_Observable *the_PDU_Observable) :
}
MyServer::MyServer(IYaz_PDU_Observable *the_PDU_Observable) :
@@
-94,9
+101,8
@@
int main(int argc, char **argv)
Yaz_SocketManager mySocketManager;
Yaz_PDU_Assoc *my_PDU_Assoc = new Yaz_PDU_Assoc(&mySocketManager, 0);
Yaz_SocketManager mySocketManager;
Yaz_PDU_Assoc *my_PDU_Assoc = new Yaz_PDU_Assoc(&mySocketManager, 0);
- my_PDU_Assoc->idleTime(20);
MyServer z(my_PDU_Assoc);
MyServer z(my_PDU_Assoc);
-
+
if (argc <= 1)
z.server("@:9999");
else
if (argc <= 1)
z.server("@:9999");
else