From 514f9aa123a7114b7fb079bc6fd9dbdd81a7f164 Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Wed, 3 May 2017 17:13:08 +0200 Subject: [PATCH] rpc: hex-ints for RequestType definitions --- rpc/structs.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/rpc/structs.go b/rpc/structs.go index 45d3121..6ac2273 100644 --- a/rpc/structs.go +++ b/rpc/structs.go @@ -7,11 +7,11 @@ type RequestId [16]byte type RequestType uint8 const ( - RTProtocolVersionRequest RequestType = 1 - RTFilesystemRequest = 16 - RTInitialTransferRequest = 17 - RTIncrementalTransferRequest = 18 - RTFilesystemVersionsRequest = 19 + RTProtocolVersionRequest RequestType = 0x01 + RTFilesystemRequest = 0x10 + RTFilesystemVersionsRequest = 0x11 + RTInitialTransferRequest = 0x12 + RTIncrementalTransferRequest = 0x13 ) type RequestHeader struct { @@ -70,11 +70,11 @@ const ( type ResponseType uint8 const ( - RNONE ResponseType = 0 - ROK = 1 - RFilesystems = 2 - RChunkedStream = 3 - RFilesystemDiff = 4 + RNONE ResponseType = 0x0 + ROK = 0x1 + RFilesystems = 0x10 + RFilesystemDiff = 0x11 + RChunkedStream = 0x20 ) type ResponseHeader struct {