From e00efb4381c5123699e4ef9807b67eba54ea06a0 Mon Sep 17 00:00:00 2001 From: Jesper Jensen Date: Sat, 28 Aug 2021 22:27:24 +0200 Subject: Initial fanout implemented --- src/routing.h | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src/routing.h') 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 #include -#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); -- cgit v1.2.3