X-Git-Url: http://git.indexdata.com/?p=yazproxy-moved-to-github.git;a=blobdiff_plain;f=src%2Ft-server.cpp;h=df398890607b98104f3e70ec7d5c1ca772c5e3af;hp=b7133a5bdbdf17e524f23f61ce7d7f6982e43c8e;hb=36b087dfdcfd7d098d170ea72b29a1b0690032d2;hpb=42cd2c5dddd315dd85b626b125a750e8203c739a diff --git a/src/t-server.cpp b/src/t-server.cpp index b7133a5..df39889 100644 --- a/src/t-server.cpp +++ b/src/t-server.cpp @@ -1,9 +1,20 @@ -/* - * Copyright (c) 2005, Index Data. - * See the file LICENSE for details. - * - * $Id: t-server.cpp,v 1.6 2005-10-05 12:07:15 adam Exp $ - */ +/* This file is part of YAZ proxy + Copyright (C) 1998-2009 Index Data + +YAZ proxy is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +YAZ proxy is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ #include #include @@ -11,10 +22,15 @@ #include #include #include "msg-thread.h" -#include -#include -#include -#include +#include +#include +#include +#include +#include + +#if HAVE_UNISTD_H +#include +#endif using namespace yazpp_1; @@ -63,7 +79,9 @@ IMsg_Thread *Auth_Msg::handle() ODR_MASK_SET(apdu->u.initResponse->options, Z_Options_present); break; case Z_APDU_searchRequest: +#if HAVE_UNISTD_H sleep(5); +#endif apdu = zget_APDU(odr, Z_APDU_searchResponse); break; case Z_APDU_triggerResourceControlRequest: @@ -251,6 +269,7 @@ int main(int argc, char **argv) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab