From: Sean Hefty Date: Mon, 10 Dec 2012 22:53:17 +0000 (-0800) Subject: Refresh of udpong X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=e71036b5f58d6fcaadf02650e5d266e374a70278;p=~shefty%2Flibrdmacm.git Refresh of udpong --- 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;