Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Application: basic-webserver, Main.cpp
- * Author: Project, UNX511, Team A
- * Description: The main cpp file.
- * A webserver that has been coded from scratch.
- * It uses Linux's socket library to deal with connections.
- *
- * This application is licensed under Creative Commons - Attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0)
- * See this for more information: http://creativecommons.org/licenses/by-nc-sa/3.0/
- */
- #include "Web.h"
- #include "Helpers.h"
- int main(){
- // Become deamon
- //if(!!fork()){
- // return EXIT_SUCCESS; // Parent returns OK to shell
- //}
- preventZombies();
- Web server(9001);
- server.run();
- return EXIT_SUCCESS;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement