1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-16 20:23:50 +03:00

r2105: added a TestSleep() operation to the echo pipe and extended the

RPC-ECHO test to use it to test asynchronous rpc operations.
This commit is contained in:
Andrew Tridgell
2004-08-30 07:36:16 +00:00
committed by Gerald (Jerry) Carter
parent e37a4c1a63
commit a5eb6cad50
3 changed files with 64 additions and 0 deletions

View File

@@ -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"