| 62 | |
| 63 | |
| 64 | int main() |
| 65 | { |
| 66 | try |
| 67 | { |
| 68 | serv our_server; |
| 69 | |
| 70 | // set up the server object we have made |
| 71 | our_server.set_listening_port(1234); |
| 72 | // Tell the server to begin accepting connections. |
| 73 | our_server.start_async(); |
| 74 | |
| 75 | cout << "Press enter to end this program" << endl; |
| 76 | cin.get(); |
| 77 | } |
| 78 | catch (exception& e) |
| 79 | { |
| 80 | cout << e.what() << endl; |
| 81 | } |
| 82 | } |
| 83 | |
| 84 |