Added PING/PONG command to the server. Bumped to version 0.2.7

Wed, 17 Dec 2014 15:44:58 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Wed, 17 Dec 2014 15:44:58 +0100
changeset 303
19a9a3912d03
parent 302
3d2bd47f35b4
child 304
c1be51c076c9

Added PING/PONG command to the server. Bumped to version 0.2.7

configure file | annotate | diff | comparison | revisions
configure.ac file | annotate | diff | comparison | revisions
thermferm/server.c file | annotate | diff | comparison | revisions
--- a/configure	Mon Dec 01 14:15:22 2014 +0100
+++ b/configure	Wed Dec 17 15:44:58 2014 +0100
@@ -2034,7 +2034,7 @@
 
 
 PACKAGE="mbsePi-apps"
-VERSION="0.2.6"
+VERSION="0.2.7"
 COPYRIGHT="Copyright (C) 2014 Michiel Broek, All Rights Reserved"
 CYEARS="2014"
 
--- a/configure.ac	Mon Dec 01 14:15:22 2014 +0100
+++ b/configure.ac	Wed Dec 17 15:44:58 2014 +0100
@@ -8,7 +8,7 @@
 dnl General settings
 dnl After changeing the version number, run autoconf!
 PACKAGE="mbsePi-apps"
-VERSION="0.2.6"
+VERSION="0.2.7"
 COPYRIGHT="Copyright (C) 2014 Michiel Broek, All Rights Reserved"
 CYEARS="2014"
 AC_SUBST(PACKAGE)
--- a/thermferm/server.c	Mon Dec 01 14:15:22 2014 +0100
+++ b/thermferm/server.c	Wed Dec 17 15:44:58 2014 +0100
@@ -2000,6 +2000,8 @@
 		srv_send((char *)".");
 	    } else if (strncmp(buf, "LIST", 4) == 0) {
 		cmd_list(buf);
+	    } else if (strncmp(buf, "PING", 4) == 0) {
+		srv_send((char *)"101 PONG");
 	    } else if (strncmp(buf, "PROFILE", 7) == 0) {
 		if (cmd_profile(buf) == 0)
 		    wrconfig();

mercurial