Improve nettest feedback

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4172 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2011-12-13 20:15:30 +00:00
parent aeb95a78a1
commit 24fea8daaa
2 changed files with 2 additions and 1 deletions

View File

@ -82,7 +82,6 @@ void send_client(void)
exit(1);
}
/* Create a new TCP socket */
sockfd = socket(PF_INET, SOCK_STREAM, 0);
@ -139,6 +138,7 @@ void send_client(void)
nbytessent, SENDSIZE);
goto errout_with_socket;
}
message("Sent %d bytes\n", nbytessent);
}
#else
/* Then send and receive one message */

View File

@ -154,6 +154,7 @@ void recv_server(void)
message("server: recv failed: %d\n", errno);
goto errout_with_acceptsd;
}
message("Received %d bytes\n", nbytesread);
}
#else
/* Receive canned message */