From 893b125acba6633bf946adf2b9821f6359fc4d3c Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Sun, 1 Oct 2017 17:25:47 +0200 Subject: [SERVER] Implement HTTP RPC that supports different queries and ACL - ACL is defined in new file rpc.acl - Queries are still WIP, for now something like /query?q=stats&q=images /query?q=clients works, although the parsing is still ugly - Also supports HTTP keep-alive --- src/types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/types.h') diff --git a/src/types.h b/src/types.h index 19c84cf..63fe3a6 100644 --- a/src/types.h +++ b/src/types.h @@ -93,7 +93,7 @@ static const uint16_t dnbd3_packet_magic = (0x73) | (0x72 << 8); #endif #pragma pack(1) -typedef struct +typedef struct dnbd3_host_t { uint8_t addr[16]; // 16byte (network representation, so it can be directly passed to socket functions) uint16_t port; // 2byte (network representation, so it can be directly passed to socket functions) -- cgit v1.2.3-55-g7522