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:
committed by
Gerald (Jerry) Carter
parent
e37a4c1a63
commit
a5eb6cad50
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user