* Copyright (c) 1998-2003, 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.15 2004-01-05 11:31:04 adam Exp $
*/
#include <yaz/log.h>
client (host);
timeout (10);
wait ();
- timeout (0);
+ timeout (-1);
return 1;
}
client (host);
timeout (10);
wait ();
- timeout (0);
+ timeout (-1);
send_initRequest();
wait ();
return 1;
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, "<host>[':'<port>][/<database>]"},
{"connect", &MyClient::cmd_connect, "<host>[':'<port>][/<database>]"},
client (host);
timeout (10);
wait ();
- timeout (0);
+ timeout (-1);
send_initRequest();
wait ();
}