Skip to content
This repository has been archived by the owner on Jun 12, 2018. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
eidheim committed Jan 30, 2015
1 parent 0a33b2e commit 79903b6
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,14 @@ On Linux using g++: add `-pthread`

Note: added `-lboost_thread` to make the json-example thread safe. On some systems you might have to use `-lboost_thread-mt` instead.

#### HTTP
You can now also compile using CMake and make:

```
cmake .
make
```

Use CMake and make, or:
#### HTTP

`g++ -O3 -std=c++11 http_examples.cpp -lboost_system -lboost_thread -o http_examples`

Expand All @@ -47,8 +52,6 @@ Also, direct your favorite browser to for instance http://localhost:8080/

#### HTTPS

Use CMake and make, or:

`g++ -O3 -std=c++11 https_examples.cpp -lboost_system -lboost_thread -lssl -lcrypto -o https_examples`

Before running the server, an RSA private key (server.key) and an SSL certificate (server.crt) must be created. Follow, for instance, the instructions given here (for a self-signed certificate): http://www.akadia.com/services/ssh_test_certificate.html
Expand Down

0 comments on commit 79903b6

Please sign in to comment.