Browse Source

core: defined macro for CRLFCRLF

- used in pinging over tcp, makes it more coherent to use
Daniel-Constantin Mierla 9 years ago
parent
commit
6649cdf515
1 changed files with 4 additions and 1 deletions
  1. 4 1
      config.h

+ 4 - 1
config.h

@@ -90,13 +90,16 @@
 #define SERVER_HDR_LEN (sizeof(SERVER_HDR)-1)
 
 #define MAX_WARNING_LEN  256
-		
+
 #define MY_BRANCH ";branch="
 #define MY_BRANCH_LEN (sizeof(MY_BRANCH) - 1)
 
 #define MAX_PORT_LEN 7 /* ':' + max 5 letters + \0 */
+
 #define CRLF "\r\n"
 #define CRLF_LEN (sizeof(CRLF) - 1)
+#define CRLFCRLF "\r\n\r\n"
+#define CRLFCRLF_LEN (sizeof(CRLFCRLF) - 1)
 
 #define RECEIVED        ";received="
 #define RECEIVED_LEN (sizeof(RECEIVED) - 1)