forked from cat/WebBase
Added a basic message for startup
This commit is contained in:
@@ -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
|
||||||
|
@@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user