Advertisement

libco example_echosvr.cpp的研究或解析

阅读量:

参考

程序分析

复制代码
 /* **读取客户端的请求,然后按原样返回给客户端
    
 */
    
  
    
 #include "co_routine.h"
    
  
    
 #include <stdio.h>
    
 #include <stdlib.h>
    
 #include <stdint.h>
    
 #include <sys/time.h>
    
 #include <stack>
    
  
    
 #include <sys/socket.h>
    
 #include <netinet/in.h>
    
 #include <sys/un.h>
    
 #include <fcntl.h>
    
 #include <arpa/inet.h>
    
 #include <unistd.h>
    
 #include <errno.h>
    
 #include <sys/wait.h>
    
  
    
 #ifdef __FreeBSD__
    
 #include <cstring>
    
 #include <sys/types.h>
    
 #include <sys/wait.h>
    
 #endif
    
  

全部评论 (0)

还没有任何评论哟~