Skip to content

matwii/web-server-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An example, not entirely stable, web server

Prerequisites

The C++ IDE juCi++ should be installed.

Installing dependencies

Debian based distributions

sudo apt-get install libboost-thread-dev libboost-regex-dev libboost-date-time-dev

Arch Linux based distributions

sudo pacman -S boost

OS X

brew install boost

Compiling and running

git clone https://github.com/ntnu-tdat3020/web-server-example
juci web-server-example

Choose Compile and Run in the Project menu.

See web page

Alternative 1

Open http://localhost:8080 in a web browser

Alternative 2

In a terminal:

telnet localhost 8080
GET / HTTP/1.1
                       # Press enter twice here

Debugging

First, stop the web server (if it is running) by choosing Kill Last Process in the juCi++ Project menu.

In a terminal:

cd build
mkdir debug
cd debug
cmake -DCMAKE_BUILD_TYPE=Debug ../..
make
gdb ./web_server                      # In OS X, instead use: lldb ./web_server
run

Backtrace of a stopped process

bt

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published