From 81168619860f4e6439345237b58c90af9261bff0 Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Fri, 29 Jan 2021 18:29:05 +0200 Subject: [PATCH] Removed old code --- source/app.d | 3 --- source/dnetd/dlink.d | 33 +++++++-------------------------- 2 files changed, 7 insertions(+), 29 deletions(-) diff --git a/source/app.d b/source/app.d index 13df86c..85ac049 100644 --- a/source/app.d +++ b/source/app.d @@ -79,9 +79,6 @@ void main(string[] args) /* Attach the Meyer to the server */ dserver.attachLinkManager(meyer); - - - /* Start the server (TODO: This should start Meyer) */ dserver.startServer(); diff --git a/source/dnetd/dlink.d b/source/dnetd/dlink.d index 83f1c75..a9955a3 100644 --- a/source/dnetd/dlink.d +++ b/source/dnetd/dlink.d @@ -9,32 +9,6 @@ import dnetd.dconfig; import std.socket : Address; import core.thread : Thread; -/** -* DLink -* -* Couples a DConneciton (direct peer) -* with information about what this link -* knows and can tell us -*/ -public final class DLidnk -{ - /* The directly attached peer */ - private DConnection directPeer; - - /* Servers (by name) this server is aware of */ - private string[] knowledgeList; - - this(DConnection directPeer) - { - this.directPeer = directPeer; - } - - /* Call this to update list */ - public void updateKB() - { - /* TODO: Ask DConneciton here for the servers he knows */ - } -} /** * Represents a server link @@ -82,6 +56,10 @@ public final class DLink : Thread private void outboundWorker() { /* TODO: Implement me */ + while(true) + { + + } } @@ -90,6 +68,9 @@ public final class DLink : Thread */ this(DServer server, string name, Address address, DConnection connection) { + /* Save the server, name and address */ + + /* Save the active connection */ /* Save name and address */ this(server, name, address);