From 55dbb2e6cd820f7ec545577260358a1d0ca56952 Mon Sep 17 00:00:00 2001 From: cat Date: Wed, 18 Jun 2025 01:56:24 +0300 Subject: [PATCH] Added a basic message for startup --- src/Entry.cpp | 2 -- src/Webserver.cpp | 1 + src/main.hpp | 3 +++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Entry.cpp b/src/Entry.cpp index de7ae3e..aa4cb7d 100644 --- a/src/Entry.cpp +++ b/src/Entry.cpp @@ -1,6 +1,4 @@ #include "main.hpp" -#include -#include // Entry point a.k.a "main.cpp" // You do not want to program here 99% of the time diff --git a/src/Webserver.cpp b/src/Webserver.cpp index 8c0251c..3bafb83 100644 --- a/src/Webserver.cpp +++ b/src/Webserver.cpp @@ -5,6 +5,7 @@ Webserver::Webserver(asio::io_context &context) : io(context), accept(context, asio::ip::tcp::endpoint(asio::ip::make_address(IP), PORT)) { + std::cout << "Server is up!\n"; begin(); } diff --git a/src/main.hpp b/src/main.hpp index 95e6a91..cd2f633 100644 --- a/src/main.hpp +++ b/src/main.hpp @@ -10,6 +10,9 @@ #include #include +#include +#include + #define IP "127.0.0.1" #define PORT 8000 using asocket = asio::ip::tcp::socket;