Skip to content

Commit

Permalink
Update 非阻塞模式下send和recv函数的返回值.md
Browse files Browse the repository at this point in the history
  • Loading branch information
hggg666 committed Apr 11, 2023
1 parent 710d981 commit ffcb1f2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
7 while (true)
8 {
9 ret = send(m_hSocket, buf + sent_bytes, buf_length - sent_bytes, 0);
10 if (nRet == -1)
10 if (ret == -1)
11 {
12 if (errno == EWOULDBLOCK)
13 {
Expand All @@ -57,7 +57,7 @@
19 else
20 return false;
21 }
22 else if (nRet == 0)
22 else if (ret == 0)
23 {
24 return false;
25 }
Expand Down

0 comments on commit ffcb1f2

Please sign in to comment.