Advertisement
Guest User

Untitled

a guest
Feb 7th, 2012
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.71 KB | None | 0 0
  1. /**
  2.  * Application: basic-webserver, Main.cpp
  3.  * Author: Project, UNX511, Team A
  4.  * Description: The main cpp file.
  5.  * A webserver that has been coded from scratch.
  6.  * It uses Linux's socket library to deal with connections.
  7.  *
  8.  * This application is licensed under Creative Commons - Attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0)
  9.  * See this for more information: http://creativecommons.org/licenses/by-nc-sa/3.0/
  10.  */
  11.  
  12. #include "Web.h"
  13. #include "Helpers.h"
  14.  
  15. int main(){
  16.    
  17.    // Become deamon
  18.    //if(!!fork()){
  19.      // return EXIT_SUCCESS; // Parent returns OK to shell
  20.    //}
  21.    
  22.    preventZombies();
  23.    
  24.    Web server(9001);
  25.    server.run();
  26.    return EXIT_SUCCESS;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement