Update README.md

This commit is contained in:
Ole Christian Eidheim 2015-01-30 17:34:48 +01:00
commit 79903b6abb

View file

@ -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:
Use CMake and make, or:
```
cmake .
make
```
#### HTTP
`g++ -O3 -std=c++11 http_examples.cpp -lboost_system -lboost_thread -o http_examples`
@ -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