diff options
author | Johann Latocha | 2012-02-08 21:26:47 +0100 |
---|---|---|
committer | Johann Latocha | 2012-02-08 21:26:47 +0100 |
commit | f7e732e0ab494627666f3affe23622729bd637d7 (patch) | |
tree | 453315fec18665f9595b1a2f8bf80a1e7f641060 /src/types.h | |
parent | [ALL] Request latest available rid (diff) | |
download | dnbd3-f7e732e0ab494627666f3affe23622729bd637d7.tar.gz dnbd3-f7e732e0ab494627666f3affe23622729bd637d7.tar.xz dnbd3-f7e732e0ab494627666f3affe23622729bd637d7.zip |
[ALL] Refactoring
[ALL] Send and receive servers
[TODO] Config file reloading is broken
Diffstat (limited to 'src/types.h')
-rw-r--r-- | src/types.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/types.h b/src/types.h index bb2d082..8fdfbba 100644 --- a/src/types.h +++ b/src/types.h @@ -40,26 +40,26 @@ typedef struct // network #define CMD_GET_BLOCK 1 #define CMD_GET_SIZE 2 -#define CMD_PING 3 +#define CMD_GET_SERVERS 3 #pragma pack(1) typedef struct { - uint16_t cmd; - uint16_t vid; - uint16_t rid; - uint64_t offset; - uint64_t size; - char handle[8]; + uint16_t cmd; // 2byte + uint16_t vid; // 2byte + uint16_t rid; // 2byte + uint64_t offset; // 8byte + uint64_t size; // 8byte + char handle[8]; // 8byte } dnbd3_request_t; #pragma pack(0) #pragma pack(1) typedef struct { - uint16_t cmd; - uint64_t filesize; - char handle[8]; + uint16_t cmd; // 2byte + uint64_t size; // 8byte + char handle[8]; // 8byte } dnbd3_reply_t; #pragma pack(0) |