testprogs/win32/rpcecho-win32-pipe works??
authorStefan Metzmacher <metze@samba.org>
Fri, 20 Sep 2013 20:50:02 +0000 (22:50 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 4 Jun 2019 11:15:20 +0000 (13:15 +0200)
testprogs/win32/rpcecho-win32-pipe/rpcecho.h
testprogs/win32/rpcecho-win32-pipe/rpcecho_c.c
testprogs/win32/rpcecho-win32-pipe/rpcecho_s.c
testprogs/win32/rpcecho-win32-pipe/server.c

index 4c3ddc33ea17f1aaa56a2eb53b87804f7e63ea82..b6dc8fa9318afe39c61f27475d53b0fbe0bb5570 100644 (file)
@@ -4,7 +4,7 @@
 \r
 \r
  /* File created by MIDL compiler version 7.00.0555 */\r
-/* at Fri Sep 20 22:20:36 2013\r
+/* at Fri Sep 20 22:29:43 2013
  */\r
 /* Compiler settings for rpcecho.idl, rpcecho.acf:\r
     Oicf, W1, Zp8, env=Win64 (32b run), target_arch=AMD64 7.00.0555 \r
index 6220cb468d6af920e3cd241f334e81788450b782..324a0ae252be62dbd99c9dee5cc69f33e3f67aa9 100644 (file)
@@ -4,7 +4,7 @@
 \r
 \r
  /* File created by MIDL compiler version 7.00.0555 */\r
-/* at Fri Sep 20 22:20:36 2013\r
+/* at Fri Sep 20 22:29:43 2013
  */\r
 /* Compiler settings for rpcecho.idl, rpcecho.acf:\r
     Oicf, W1, Zp8, env=Win64 (32b run), target_arch=AMD64 7.00.0555 \r
index a570d6bc83ac4cb260f286dfe98449c90e99bda4..43ea22d05dd0f04fc6ba1f7670190ea03a0a42cd 100644 (file)
@@ -4,7 +4,7 @@
 \r
 \r
  /* File created by MIDL compiler version 7.00.0555 */\r
-/* at Fri Sep 20 22:20:36 2013\r
+/* at Fri Sep 20 22:29:43 2013
  */\r
 /* Compiler settings for rpcecho.idl, rpcecho.acf:\r
     Oicf, W1, Zp8, env=Win64 (32b run), target_arch=AMD64 7.00.0555 \r
index 598a5d3db0c8e9ed7df758c9154ad9510c1862d8..9324ff3679e686e8e669dffd02592c08dc03c7c0 100755 (executable)
@@ -153,17 +153,21 @@ void TestBytePipeIn(
        ASYNC_BYTE_PIPE *in_pipe)
 {
        long ret;
-       byte in_bytes[0x80000];
+       byte *in_bytes;
+       int in_alloc_size;
        int in_bytes_count;
        int i;
 
        printf("TestBytePipeIn: Start\n");
        fflush(stdout);
 
-       in_bytes_count = sizeof(in_bytes);
+       in_alloc_size = 5840 * sizeof(byte);
+       in_bytes = malloc(in_alloc_size);
+
+       in_bytes_count = chunk_size;
        for (i=0; in_bytes_count > 0; i++) {
-               in_bytes_count = sizeof(in_bytes);
-               in_pipe->pull(in_pipe->state, in_bytes, sizeof(byte), &in_bytes_count);
+               in_bytes_count = 0;
+               in_pipe->pull(in_pipe->state, in_bytes, in_alloc_size, &in_bytes_count);
                printf("pull[%u] bytes_count[%u]\n", i, in_bytes_count);
                fflush(stdout);
        }