From 4c4d4daab6bdf5b5ce96a5c175daff235a1676f3 Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Thu, 15 Oct 2020 11:50:27 +0200 Subject: [PATCH] Add queues to manager. --- source/libdnet/dclient.d | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source/libdnet/dclient.d b/source/libdnet/dclient.d index 50cb6d9..b68481b 100644 --- a/source/libdnet/dclient.d +++ b/source/libdnet/dclient.d @@ -43,11 +43,15 @@ public final class DClient /* Initialize the manager */ manager = new Manager(socket); - /* Create a queue for normal traffic (request-reply) */ + /* Create a queue for normal traffic (request-reply on tag: 0) */ Queue reqRepQueue = new Queue(0); - /* Create a queue for notifications (replies-only) */ + /* Create a queue for notifications (replies-only on tag: 1) */ Queue notificationQueue = new Queue(1); + + /* Add these queues to the tracker */ + manager.addQueue(reqRepQueue); + manager.addQueue(notificationQueue); }