mirror of
https://github.com/status-im/status-go.git
synced 2025-02-27 22:20:49 +00:00
This commit adds basic syncing capabilities with peers if they are both online. It updates the work done on MVDS, but I decided to create the code in status-go instead, since it's very tight to the application (similarly the code that was the inspiration for mvds, bramble, is all tight together at the database level). I reused parts of the protobufs. The flow is: 1) An OFFER message is sent periodically with a bunch of message-ids and group-ids. 2) Anyone can REQUEST some of those messages if not present in their database. 3) The peer will then send over those messages. It's disabled by default, but I am planning to add a way to set up the flags.
30 lines
551 B
C
30 lines
551 B
C
#ifndef _CPIO_H
|
|
#define _CPIO_H
|
|
|
|
#define MAGIC "070707"
|
|
|
|
#define C_IRUSR 000400
|
|
#define C_IWUSR 000200
|
|
#define C_IXUSR 000100
|
|
#define C_IRGRP 000040
|
|
#define C_IWGRP 000020
|
|
#define C_IXGRP 000010
|
|
#define C_IROTH 000004
|
|
#define C_IWOTH 000002
|
|
#define C_IXOTH 000001
|
|
|
|
#define C_ISUID 004000
|
|
#define C_ISGID 002000
|
|
#define C_ISVTX 001000
|
|
|
|
#define C_ISBLK 060000
|
|
#define C_ISCHR 020000
|
|
#define C_ISDIR 040000
|
|
#define C_ISFIFO 010000
|
|
#define C_ISSOCK 0140000
|
|
#define C_ISLNK 0120000
|
|
#define C_ISCTG 0110000
|
|
#define C_ISREG 0100000
|
|
|
|
#endif
|