21#define MKID(a, b, c, d) ((a) | ((b) << 8) | ((c) << 16) | ((d) << 24))
23#define ID_LSTAT_V1 MKID('S', 'T', 'A', 'T')
24#define ID_STAT_V2 MKID('S', 'T', 'A', '2')
25#define ID_LSTAT_V2 MKID('L', 'S', 'T', '2')
27#define ID_LIST_V1 MKID('L', 'I', 'S', 'T')
28#define ID_LIST_V2 MKID('L', 'I', 'S', '2')
29#define ID_DENT_V1 MKID('D', 'E', 'N', 'T')
30#define ID_DENT_V2 MKID('D', 'N', 'T', '2')
32#define ID_SEND_V1 MKID('S', 'E', 'N', 'D')
33#define ID_SEND_V2 MKID('S', 'N', 'D', '2')
34#define ID_RECV_V1 MKID('R', 'E', 'C', 'V')
35#define ID_RECV_V2 MKID('R', 'C', 'V', '2')
36#define ID_DONE MKID('D', 'O', 'N', 'E')
37#define ID_DATA MKID('D', 'A', 'T', 'A')
38#define ID_OKAY MKID('O', 'K', 'A', 'Y')
39#define ID_FAIL MKID('F', 'A', 'I', 'L')
40#define ID_QUIT MKID('Q', 'U', 'I', 'T')
146#define SYNC_DATA_MAX (64 * 1024)
#define error(format, args...)
Definition: fec_private.h:201
static bool sync_recv_v2(SyncConnection &sc, const char *rpath, const char *lpath, const char *name, uint64_t expected_size, CompressionType compression)
Definition: file_sync_client.cpp:1157
enum SyncFlag __attribute__
Definition: file_sync_protocol.h:48
SyncFlag
Definition: file_sync_protocol.h:94
@ kSyncFlagLZ4
Definition: file_sync_protocol.h:97
@ kSyncFlagNone
Definition: file_sync_protocol.h:95
@ kSyncFlagDryRun
Definition: file_sync_protocol.h:99
@ kSyncFlagZstd
Definition: file_sync_protocol.h:98
@ kSyncFlagBrotli
Definition: file_sync_protocol.h:96
uint32_t id
Definition: file_sync_protocol.h:0
CompressionType
Definition: file_sync_protocol.h:102
uint32_t size
Definition: io.h:2
Definition: file_sync_protocol.h:42
uint32_t id
Definition: file_sync_protocol.h:43
uint32_t path_length
Definition: file_sync_protocol.h:44
Definition: file_sync_protocol.h:135
sync_dent_v2 dent_v2
Definition: file_sync_protocol.h:139
sync_send_v2 send_v2_setup
Definition: file_sync_protocol.h:142
sync_status status
Definition: file_sync_protocol.h:141
sync_stat_v1 stat_v1
Definition: file_sync_protocol.h:136
sync_recv_v2 recv_v2_setup
Definition: file_sync_protocol.h:143
sync_dent_v1 dent_v1
Definition: file_sync_protocol.h:138
sync_data data
Definition: file_sync_protocol.h:140
sync_stat_v2 stat_v2
Definition: file_sync_protocol.h:137