mirror of https://github.com/deavminet/dnetd-ng
Added a queue for Listeners and Connections to the Server class
This commit is contained in:
parent
b6d84cfa92
commit
d0aeb9bf63
|
@ -10,6 +10,9 @@ module dnetd.server;
|
|||
|
||||
import dnetd.app : logger;
|
||||
import dnetd.config : ConfigurationError, Configuration;
|
||||
import std.container.slist : SList;
|
||||
import dnetd.listeners.listeners : Listener;
|
||||
import dnetd.connection.connection : Connection;
|
||||
|
||||
/**
|
||||
* Represents an instance of a dnet server
|
||||
|
@ -19,6 +22,21 @@ public final class Server
|
|||
/* Server Configuration */
|
||||
private Configuration config;
|
||||
|
||||
/**
|
||||
* Listeners
|
||||
*/
|
||||
private SList!(Listener) listeners;
|
||||
|
||||
/**
|
||||
* Connected clients and servers
|
||||
*
|
||||
* Inbound and outbound
|
||||
*/
|
||||
private SList!(Connection) connections;
|
||||
|
||||
|
||||
|
||||
|
||||
this(Configuration config)
|
||||
{
|
||||
logger.log("Server instance '"~"PUT ID HERE"~"' starting up...");
|
||||
|
|
Loading…
Reference in New Issue