Merge pull request #90 from DavidLin1577/patch-6

Minor optimisation to the tcp_client code
This commit is contained in:
Arthur
2020-02-15 20:45:22 +08:00
committed by GitHub

View File

@@ -38,7 +38,7 @@ void application_entry(void *arg)
printf("send(%d): %s:%d :%s\n", ++cnt, server_ip, server_port, str);
if ((send(socketfd, str, strlen(str), 0)) < 0) {
printf("send mes error: %s errno : %d\n", strerror(errno), errno);
printf("send msg error: %s errno : %d\n", strerror(errno), errno);
goto tcp_client_exit;
}