ep->RecvRequest();if(!ep->IsStop())// 只有读取请求不出错,才往下执行{LOG(INFO,"Recv No Error, Continue Build And Send");ep->BuildResponse();ep->SendResponse();}else{LOG(WARNING,"Recv Error, Stop Build And Send");}
structCallBack{// 重载() --> 仿函数voidoperator()(int sock){HandlerRequest(sock);}voidHandlerRequest(int sock){LOG(INFO,"Hander Request Begin");EndPoint *ep =newEndPoint(sock);// TODOep->RecvRequest();if(!ep->IsStop())// 只有读取请求不出错,才往下执行{LOG(INFO,"Recv No Error, Continue Build And Send");ep->BuildResponse();ep->SendResponse();}else{LOG(WARNING,"Recv Error, Stop Build And Send");}delete ep;LOG(INFO,"Hander Request End");}CallBack(){}~CallBack(){}};