]> git.openfabrics.org - ~shefty/librdmacm.git/commitdiff
Refresh of udpong
authorSean Hefty <sean.hefty@intel.com>
Mon, 10 Dec 2012 22:53:17 +0000 (14:53 -0800)
committerSean Hefty <sean.hefty@intel.com>
Mon, 10 Dec 2012 22:53:17 +0000 (14:53 -0800)
examples/udpong.c

index 12f0e5bf8bec8811753fa1fbf26f8a9ff49584ad..3b0f96170ee7310517904d6fb1332d85cd07883a 100644 (file)
@@ -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;