From e4f3e11a8e22db6fca08dba4290db39a2e1c0f4b Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 2 Nov 2017 10:52:53 +0100 Subject: [SERVER] Add --errormsg to only serve HTTP-JSON error code This could have been an external tool, but this didn't add much code and has the benefit of honoring the config file for port and bind address. --- src/server/rpc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/server/rpc.h') diff --git a/src/server/rpc.h b/src/server/rpc.h index f337067..285242c 100644 --- a/src/server/rpc.h +++ b/src/server/rpc.h @@ -5,5 +5,6 @@ struct dnbd3_host_t; void rpc_init(); void rpc_sendStatsJson(int sock, struct dnbd3_host_t* host, const void *data, const int dataLen); +void rpc_sendErrorMessage(int sock, const char* message); #endif -- cgit v1.2.3-55-g7522