mirror of https://github.com/deavminet/dnetd.git
Added stub functions for creating a new Server instance
This commit is contained in:
parent
d23ea6c16e
commit
e27a683170
16
source/app.d
16
source/app.d
|
@ -1,6 +1,7 @@
|
|||
import std.stdio;
|
||||
import std.json;
|
||||
import std.exception;
|
||||
import dnetd.server;
|
||||
|
||||
void main(string[] args)
|
||||
{
|
||||
|
@ -43,6 +44,21 @@ private void startServer(string configPath)
|
|||
writeln("config parse error");
|
||||
return;
|
||||
}
|
||||
|
||||
/* Get server config */
|
||||
ServerConfig config = getServerConfig(configJSON);
|
||||
|
||||
/* Create a new Server */
|
||||
Server server = new Server(config);
|
||||
}
|
||||
|
||||
private ServerConfig getServerConfig(JSONValue jsonConfig)
|
||||
{
|
||||
/* TODO: Implement me */
|
||||
ServerConfig config;
|
||||
|
||||
|
||||
return config;
|
||||
}
|
||||
|
||||
private string readConfig(string configPath)
|
||||
|
|
Loading…
Reference in New Issue