diff options
author | Simon Rettberg | 2017-10-01 17:25:47 +0200 |
---|---|---|
committer | Simon Rettberg | 2017-10-01 17:25:47 +0200 |
commit | 893b125acba6633bf946adf2b9821f6359fc4d3c (patch) | |
tree | 9d3d83f6a321a84f9622cd119da168ee3dbf3c1f /src/types.h | |
parent | [SERVER] Move includes from header to source unit (diff) | |
download | dnbd3-893b125acba6633bf946adf2b9821f6359fc4d3c.tar.gz dnbd3-893b125acba6633bf946adf2b9821f6359fc4d3c.tar.xz dnbd3-893b125acba6633bf946adf2b9821f6359fc4d3c.zip |
[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
Diffstat (limited to 'src/types.h')
-rw-r--r-- | src/types.h | 2 |
1 files changed, 1 insertions, 1 deletions
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) |