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:
parent
aeb95a78a1
commit
24fea8daaa
@ -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 */
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user