diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-08-30 07:36:16 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:58:25 -0500 |
commit | f891ff694b84304ba34ec3b6367e52b30d77be59 (patch) | |
tree | 25a5a62114ba4fac9cfc46e109a7dc02f3e75095 /source4/rpc_server | |
parent | 833a896f56db2f62aac88b68312ff51f753d4ffe (diff) | |
download | samba-f891ff694b84304ba34ec3b6367e52b30d77be59.tar.gz samba-f891ff694b84304ba34ec3b6367e52b30d77be59.tar.bz2 samba-f891ff694b84304ba34ec3b6367e52b30d77be59.zip |
r2105: added a TestSleep() operation to the echo pipe and extended the
RPC-ECHO test to use it to test asynchronous rpc operations.
(This used to be commit a5eb6cad5050928fab593e1f9a82fbfba589120c)
Diffstat (limited to 'source4/rpc_server')
-rw-r--r-- | source4/rpc_server/echo/rpc_echo.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/rpc_server/echo/rpc_echo.c b/source4/rpc_server/echo/rpc_echo.c index c4e1256841..066bb2cdc1 100644 --- a/source4/rpc_server/echo/rpc_echo.c +++ b/source4/rpc_server/echo/rpc_echo.c @@ -105,6 +105,11 @@ static NTSTATUS echo_TestCall2(struct dcesrv_call_state *dce_call, TALLOC_CTX *m return NT_STATUS_OK; } +static long echo_TestSleep(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct echo_TestSleep *r) +{ + sleep(r->in.seconds); + return r->in.seconds; +} /* include the generated boilerplate */ #include "librpc/gen_ndr/ndr_echo_s.c" |