mirror of
https://github.com/deavmi/nostril
synced 2024-09-20 01:43:26 +02:00
Server
- Cleaned up `startServer()`
This commit is contained in:
parent
d32bc6e0a8
commit
4172088c8d
@ -71,26 +71,14 @@ public class Server
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TODO
|
* TODO: We need to find a way to hook pre-accept and to not hang on accept either
|
||||||
*/
|
*/
|
||||||
public void startServer()
|
public void startServer()
|
||||||
{
|
{
|
||||||
import eventcore.socket;
|
|
||||||
import std.socket;
|
|
||||||
// StreamListenSocket servSock = listenStream(parseAddress("[::]", 8082));
|
|
||||||
|
|
||||||
|
|
||||||
// TCPListenOptions d;
|
|
||||||
|
|
||||||
// TCPListener serverSocket = listenTCP(httpSettings.port, &tcpHandler, httpSettings.bindAddresses[0]);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Bind the router to the server
|
// Bind the router to the server
|
||||||
// TODO: Investigate multi-threaded listener rather
|
|
||||||
listenHTTP(httpSettings, router);
|
listenHTTP(httpSettings, router);
|
||||||
// listenHTTPDist(httpSettings, toDelegate(&threadHandler), "[]::]", 8082);
|
|
||||||
|
|
||||||
|
// Start the event loop
|
||||||
runApplication();
|
runApplication();
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user