From e71036b5f58d6fcaadf02650e5d266e374a70278 Mon Sep 17 00:00:00 2001 From: Sean Hefty Date: Mon, 10 Dec 2012 14:53:17 -0800 Subject: [PATCH] Refresh of udpong --- examples/udpong.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/examples/udpong.c b/examples/udpong.c index 12f0e5bf..3b0f9617 100644 --- a/examples/udpong.c +++ b/examples/udpong.c @@ -375,11 +375,22 @@ static int run_test(void) { int ret, i; +printf("send start msg 1\n"); msg.op = msg_op_start; ret = client_send_recv(&msg, CTRL_MSG_SIZE, 1000); if (ret != CTRL_MSG_SIZE) goto out; + printf("send start msg 2\n"); + ret = client_send_recv(&msg, CTRL_MSG_SIZE, 1000); + if (ret != CTRL_MSG_SIZE) + goto out; + printf("send start msg 3\n"); + ret = client_send_recv(&msg, CTRL_MSG_SIZE, 1000); + if (ret != CTRL_MSG_SIZE) + goto out; + printf("starting test\n"); + msg.op = echo ? msg_op_echo : msg_op_data; gettimeofday(&start, NULL); for (i = 0; i < transfer_count; i++) { @@ -429,8 +440,10 @@ static int client_connect(void) rs_close(rs); } + printf("send login msg\n"); msg.op = msg_op_login; ret = client_send_recv(&msg, CTRL_MSG_SIZE, 1000); + printf("login %d %s\n", ret, strerror(errno)); if (ret == CTRL_MSG_SIZE) ret = 0; -- 2.41.0