X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=src%2Fyaz-my-client.cpp;h=a42f9280a214b330cceb9ead46b4471bdb3869e3;hb=2f8ce6d398a9ec190b41a851bcd4b4bd2e3c2c8c;hp=4ad831967f8551af99938a9f0ee8729a7f68a7f6;hpb=28588b9224eb5189af32b10f440ef2a917a05ea2;p=yazpp-moved-to-github.git diff --git a/src/yaz-my-client.cpp b/src/yaz-my-client.cpp index 4ad8319..a42f928 100644 --- a/src/yaz-my-client.cpp +++ b/src/yaz-my-client.cpp @@ -1,8 +1,8 @@ /* - * Copyright (c) 1998-2003, Index Data. + * Copyright (c) 1998-2004, Index Data. * See the file LICENSE for details. * - * $Id: yaz-my-client.cpp,v 1.13 2003-10-01 13:13:51 adam Exp $ + * $Id: yaz-my-client.cpp,v 1.17 2004-12-13 20:50:54 adam Exp $ */ #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 (); }