使用LIBEVENT构建HTTP服务
//开启服务void startHttpServer(int port){ WSADATA wsaData; WSAStartup(0x0202, &wsaData); //创建监听SOCKET 启动http服务 int fd = socket(AF_INET, SOCK_STREAM, 0); int one = 1; setsockopt(fd, SOL_SOCKET, SO_REU...
原创
2018-07-13 11:10:30 ·
2211 阅读 ·
0 评论