Advertisement

基于BOA技术的Web服务器代码分析

阅读量:
复制代码
    #include "boa.h"
    #include 
       
       
    
    
    
    /* globals */
    int backlog = SO_MAXCONN;        /*监听数目*/
    time_t start_time;              /*初始时间*/
    
    int sighup_flag = 0;            /* 1 => signal has happened, needs attention */
    int sigchld_flag = 0;           /* 1 => signal has happened, needs attention */
    int sigalrm_flag = 0;           /* 1 => signal has happened, needs attention */
    int sigterm_flag = 0;           /* lame duck mode */
    time_t current_time;            /*目前时间*/
    int max_fd = 0;                
    int pending_requests =

全部评论 (0)

还没有任何评论哟~