summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-10-15 21:30:06 +0000
committerJeremy Allison <jra@samba.org>2002-10-15 21:30:06 +0000
commitebc7fd0a3c3cf7f199cf89f82f1457ddd2cf8686 (patch)
tree298f87cf2d74c5b08278b370bd3e9a90e46672db /source3/libsmb
parentb8e4a3331ddcda9339b2508e1ef24a1c2eab19cb (diff)
downloadsamba-ebc7fd0a3c3cf7f199cf89f82f1457ddd2cf8686.tar.gz
samba-ebc7fd0a3c3cf7f199cf89f82f1457ddd2cf8686.tar.bz2
samba-ebc7fd0a3c3cf7f199cf89f82f1457ddd2cf8686.zip
Added cli_set_timeout() call.
Jeremy. (This used to be commit 9225054179b6642ae8be790d35e6590aefa46dd3)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clientgen.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index 2236d8508d..28480043b9 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/libsmb/clientgen.c
@@ -23,6 +23,17 @@
#include "includes.h"
/****************************************************************************
+ Change the timeout (in milliseconds).
+****************************************************************************/
+
+unsigned int cli_set_timeout(struct cli_state *cli, unsigned int timeout)
+{
+ unsigned int old_timeout = cli->timeout;
+ cli->timeout = timeout;
+ return old_timeout;
+}
+
+/****************************************************************************
Change the port number used to call on.
****************************************************************************/