X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fyaz-my-client.cpp;h=3a143bf6812791cd7d4f442c1544dcf866a9c30a;hb=5e3f7e1a720a08d30c407049c94c6ca825a5ed27;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..3a143bf 100644 --- a/src/yaz-my-client.cpp +++ b/src/yaz-my-client.cpp @@ -1,10 +1,11 @@ /* - * 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.18 2005-01-17 09:55:58 adam Exp $ */ +#include #include #include #include @@ -454,7 +455,7 @@ int MyClient::cmd_connect(char *host) client (host); timeout (10); wait (); - timeout (0); + timeout (-1); return 1; } @@ -463,7 +464,7 @@ int MyClient::cmd_open(char *host) client (host); timeout (10); wait (); - timeout (0); + timeout (-1); send_initRequest(); wait (); return 1; @@ -542,9 +543,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 +677,7 @@ int MyClient::args(Yaz_SocketManager *socketManager, int argc, char **argv) client (host); timeout (10); wait (); - timeout (0); + timeout (-1); send_initRequest(); wait (); }