发布时间:2013-04-24 23:19:57
1.和浏览器交互的线程void *client_thread(void *arg){ request_t request = {0}; char buf[1024] = {0}; client_t *pclient = (client_t *)arg; //接受浏览器发过来的请求 if(recv(pclient->connect_fd,buf,sizeof(buf) -1,0) < 0) { perror("Fail to recv"); pthrea.........【阅读全文】