1
0
forked from cat/WebBase

Added a basic message for startup

This commit is contained in:
2025-06-18 01:56:24 +03:00
parent 8177ba47f7
commit 55dbb2e6cd
3 changed files with 4 additions and 2 deletions

View File

@@ -1,6 +1,4 @@
#include "main.hpp" #include "main.hpp"
#include <exception>
#include <iostream>
// Entry point a.k.a "main.cpp" // Entry point a.k.a "main.cpp"
// You do not want to program here 99% of the time // You do not want to program here 99% of the time

View File

@@ -5,6 +5,7 @@ Webserver::Webserver(asio::io_context &context)
: io(context), : io(context),
accept(context, accept(context,
asio::ip::tcp::endpoint(asio::ip::make_address(IP), PORT)) { asio::ip::tcp::endpoint(asio::ip::make_address(IP), PORT)) {
std::cout << "Server is up!\n";
begin(); begin();
} }

View File

@@ -10,6 +10,9 @@
#include <asio/placeholders.hpp> #include <asio/placeholders.hpp>
#include <asio/streambuf.hpp> #include <asio/streambuf.hpp>
#include <exception>
#include <iostream>
#define IP "127.0.0.1" #define IP "127.0.0.1"
#define PORT 8000 #define PORT 8000
using asocket = asio::ip::tcp::socket; using asocket = asio::ip::tcp::socket;