summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-09-03 19:59:15 +0200
committerStefan Metzmacher <metze@samba.org>2010-09-04 09:01:15 +0200
commita510b9de39bfc970084ab77d94f67d6bec5c4923 (patch)
tree35cb1b0293a42f4bf03b03b85978428a8191daa0 /source3
parent0879571897c0c0485890119768a4dad860ee88b0 (diff)
downloadsamba-a510b9de39bfc970084ab77d94f67d6bec5c4923.tar.gz
samba-a510b9de39bfc970084ab77d94f67d6bec5c4923.tar.bz2
samba-a510b9de39bfc970084ab77d94f67d6bec5c4923.zip
s3:rpc_client: implement rpccli_bh_set_timeout()
metze
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_client/cli_pipe.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c
index 9660df35c1..1975d73e70 100644
--- a/source3/rpc_client/cli_pipe.c
+++ b/source3/rpc_client/cli_pipe.c
@@ -1996,6 +1996,15 @@ static bool rpccli_bh_is_connected(struct dcerpc_binding_handle *h)
return rpccli_is_connected(hs->rpc_cli);
}
+static uint32_t rpccli_bh_set_timeout(struct dcerpc_binding_handle *h,
+ uint32_t timeout)
+{
+ struct rpccli_bh_state *hs = dcerpc_binding_handle_data(h,
+ struct rpccli_bh_state);
+
+ return rpccli_set_timeout(hs->rpc_cli, timeout);
+}
+
struct rpccli_bh_raw_call_state {
DATA_BLOB in_data;
DATA_BLOB out_data;
@@ -2174,6 +2183,7 @@ static void rpccli_bh_do_ndr_print(struct dcerpc_binding_handle *h,
static const struct dcerpc_binding_handle_ops rpccli_bh_ops = {
.name = "rpccli",
.is_connected = rpccli_bh_is_connected,
+ .set_timeout = rpccli_bh_set_timeout,
.raw_call_send = rpccli_bh_raw_call_send,
.raw_call_recv = rpccli_bh_raw_call_recv,
.disconnect_send = rpccli_bh_disconnect_send,