From a26bcb4fc45b4055136216e2425cd39f8fb38f3f Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Thu, 6 Apr 2017 22:50:42 +0200 Subject: Change the protocol to work with Q3. --- src/main.c | 2 +- src/shared.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/main.c b/src/main.c index 44d831d..f69f4e3 100644 --- a/src/main.c +++ b/src/main.c @@ -180,7 +180,7 @@ static int parse_argv(int argc, char **argv) case 'h': puts("usage: " PROGRAM_NAME " [-h] [-v] [-p PORT] [-l LISTS-FILE]"); - exit(); + exit(0); case 'p': config.port = atoi(optarg); diff --git a/src/shared.h b/src/shared.h index 46c900e..bf4adeb 100644 --- a/src/shared.h +++ b/src/shared.h @@ -42,9 +42,9 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA #define LOCALHOST_NETWORK 0x7F000000 #define LOCALHOST_MASK 0xFF000000 -#define REQUEST_HEADER "query " +#define REQUEST_HEADER "\xFF\xFF\xFF\xFFsm2query " #define REQUEST_HEADER_LEN (sizeof(REQUEST_HEADER) - 1) -#define RESPONSE_HEADER "reply " +#define RESPONSE_HEADER "\xFF\xFF\xFF\xFFsm2reply " // main.c -- cgit