Resolve compilation errors and implement blocking API
This commit is contained in:
+4
-7
@@ -10,10 +10,6 @@
|
||||
#define TAG_METADATA_SERVER 1
|
||||
#define TAG_CHUNK_SERVER 2
|
||||
|
||||
typedef struct {
|
||||
char path[PATH_MAX];
|
||||
} ChunkStore;
|
||||
|
||||
typedef struct {
|
||||
Address addr;
|
||||
SHA256 hash;
|
||||
@@ -27,19 +23,20 @@ typedef struct {
|
||||
|
||||
typedef struct {
|
||||
|
||||
char path[PATH_MAX];
|
||||
|
||||
bool trace;
|
||||
|
||||
Address local_addr;
|
||||
|
||||
Address remote_addr;
|
||||
|
||||
Time disconnect_time;
|
||||
Time last_sync_time;
|
||||
int reconnect_delay; // In seconds
|
||||
|
||||
TCP tcp;
|
||||
// --- Subsystems ---
|
||||
|
||||
ChunkStore store;
|
||||
TCP tcp;
|
||||
|
||||
// --- Download Management ---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user