| 85 | }; |
| 86 | |
| 87 | int main() |
| 88 | { |
| 89 | try |
| 90 | { |
| 91 | // create an instance of our web server |
| 92 | web_server our_web_server; |
| 93 | |
| 94 | // make it listen on port 5000 |
| 95 | our_web_server.set_listening_port(5000); |
| 96 | // Tell the server to begin accepting connections. |
| 97 | our_web_server.start_async(); |
| 98 | |
| 99 | cout << "Press enter to end this program" << endl; |
| 100 | cin.get(); |
| 101 | } |
| 102 | catch (exception& e) |
| 103 | { |
| 104 | cout << e.what() << endl; |
| 105 | } |
| 106 | } |
| 107 | |
| 108 |