mirror of
https://github.com/deavminet/dnetd
synced 2024-09-21 17:53:39 +02:00
Removed old code
This commit is contained in:
parent
ff914cf6b5
commit
8116861986
@ -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();
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user