Skip to content
Snippets Groups Projects
Commit 10339c97 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Detail the recv_buffer() return value of 0 (TIMEOUT) in comment.

parent 074edbc1
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #858 passed
...@@ -405,7 +405,7 @@ void send_telnet_cmd(SOCKET sock, uchar cmd, uchar opt) ...@@ -405,7 +405,7 @@ void send_telnet_cmd(SOCKET sock, uchar cmd, uchar opt)
#define DEBUG_TELNET FALSE #define DEBUG_TELNET FALSE
/* /*
* Returns -1 on disconnect or the number of bytes read. * Returns -1 on disconnect, 0 on timeout, or the number of bytes read.
* Does not muck around with ERROR_VALUE (hopefully) * Does not muck around with ERROR_VALUE (hopefully)
*/ */
static int recv_buffer(int timeout /* seconds */) static int recv_buffer(int timeout /* seconds */)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment