1
0
mirror of https://github.com/deavminet/dnetd synced 2024-09-21 17:53:39 +02:00

Removed old code

This commit is contained in:
Tristan B. Kildaire 2021-01-29 18:29:05 +02:00
parent ff914cf6b5
commit 8116861986
2 changed files with 7 additions and 29 deletions

View File

@ -79,9 +79,6 @@ void main(string[] args)
/* Attach the Meyer to the server */ /* Attach the Meyer to the server */
dserver.attachLinkManager(meyer); dserver.attachLinkManager(meyer);
/* Start the server (TODO: This should start Meyer) */ /* Start the server (TODO: This should start Meyer) */
dserver.startServer(); dserver.startServer();

View File

@ -9,32 +9,6 @@ import dnetd.dconfig;
import std.socket : Address; import std.socket : Address;
import core.thread : Thread; 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 * Represents a server link
@ -82,6 +56,10 @@ public final class DLink : Thread
private void outboundWorker() private void outboundWorker()
{ {
/* TODO: Implement me */ /* TODO: Implement me */
while(true)
{
}
} }
@ -90,6 +68,9 @@ public final class DLink : Thread
*/ */
this(DServer server, string name, Address address, DConnection connection) this(DServer server, string name, Address address, DConnection connection)
{ {
/* Save the server, name and address */
/* Save the active connection */
/* Save name and address */ /* Save name and address */
this(server, name, address); this(server, name, address);