From 4172088c8d18e015a174f17b5c56d750840d5b2b Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Sat, 4 Mar 2023 17:26:34 +0200 Subject: [PATCH] Server - Cleaned up `startServer()` --- source/nostril/server.d | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/source/nostril/server.d b/source/nostril/server.d index 3eb63e2..cd2d0da 100644 --- a/source/nostril/server.d +++ b/source/nostril/server.d @@ -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() { - 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 - // TODO: Investigate multi-threaded listener rather listenHTTP(httpSettings, router); - // listenHTTPDist(httpSettings, toDelegate(&threadHandler), "[]::]", 8082); + // Start the event loop runApplication(); } /**