X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=src%2Fyaz-my-client.cpp;h=8d7a51eaf98caa0000bbcb70e9f2ab3f477060c9;hb=4c758111f1ff5a815888f70a4c4335ab149f5608;hp=0df0b0075cb2abb66aca24cabe25d18ba6709e0a;hpb=ff30371654768d249cd4c92a9af26ae6bff8c65b;p=yazpp-moved-to-github.git diff --git a/src/yaz-my-client.cpp b/src/yaz-my-client.cpp index 0df0b00..8d7a51e 100644 --- a/src/yaz-my-client.cpp +++ b/src/yaz-my-client.cpp @@ -1,11 +1,11 @@ /* - * Copyright (c) 1998-2001, Index Data. + * Copyright (c) 1998-2003, Index Data. * See the file LICENSE for details. * - * $Id: yaz-my-client.cpp,v 1.12 2002-10-28 12:16:09 adam Exp $ + * $Id: yaz-my-client.cpp,v 1.16 2004-11-30 21:10:31 adam Exp $ */ -#include +#include #include #include #include @@ -454,7 +454,7 @@ int MyClient::cmd_connect(char *host) client (host); timeout (10); wait (); - timeout (0); + timeout (-1); return 1; } @@ -463,7 +463,7 @@ int MyClient::cmd_open(char *host) client (host); timeout (10); wait (); - timeout (0); + timeout (-1); send_initRequest(); wait (); return 1; @@ -542,9 +542,9 @@ int MyClient::processCommand(const char *commandLine) cmdArgs[0] = '\0'; cmdStr[0] = '\0'; static struct { - char *cmd; + const char *cmd; int (MyClient::*fun)(char *arg); - char *ad; + const char *ad; } cmd[] = { {"open", &MyClient::cmd_open, "[':'][/]"}, {"connect", &MyClient::cmd_connect, "[':'][/]"}, @@ -676,7 +676,7 @@ int MyClient::args(Yaz_SocketManager *socketManager, int argc, char **argv) client (host); timeout (10); wait (); - timeout (0); + timeout (-1); send_initRequest(); wait (); }