From f7e732e0ab494627666f3affe23622729bd637d7 Mon Sep 17 00:00:00 2001 From: Johann Latocha Date: Wed, 8 Feb 2012 21:26:47 +0100 Subject: [ALL] Refactoring [ALL] Send and receive servers [TODO] Config file reloading is broken --- src/types.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/types.h') 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) -- cgit v1.2.3-55-g7522