diff options
| author | Jesper Jensen <jesper@slashwin.dk> | 2021-08-28 22:27:24 +0200 |
|---|---|---|
| committer | Jesper Jensen <jesper@slashwin.dk> | 2021-08-28 22:27:24 +0200 |
| commit | e00efb4381c5123699e4ef9807b67eba54ea06a0 (patch) | |
| tree | df2d7567a20e2313d576fb00aab61be8ee3383fa /src/routing.h | |
| parent | de3bec63c63b0c30a5a4e1d9b4a5478984b888e9 (diff) | |
Initial fanout implemented
Diffstat (limited to 'src/routing.h')
| -rw-r--r-- | src/routing.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/routing.h b/src/routing.h index b0e9922..540f3f6 100644 --- a/src/routing.h +++ b/src/routing.h @@ -6,18 +6,6 @@ #include <time.h> #include <stdio.h> -#define dbg(format, ...) \ - dbgl(format "\n", ## __VA_ARGS__) - -#define dbgl(format, ...) \ - printf(format, ## __VA_ARGS__); \ - fflush(stderr) - -#define err(format, ...) \ - printf(format "\n", ## __VA_ARGS__); \ - fflush(stderr) - - struct addr { uint32_t ip; uint16_t port; @@ -36,5 +24,6 @@ struct entry { void routing_init(struct nodeid* myid); void routing_flush(); +bool routing_interested(struct nodeid* id); bool routing_offer(struct nodeid* id, struct entry **dest); size_t routing_closest(struct nodeid* needle, size_t n, struct entry** res); |
