1 Star 0 Fork 8

huuhlj / linux_socket_epoll

forked from Mark Liu / linux_socket_epoll 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
socket_tcp_server.h 620 Bytes
一键复制 编辑 原始数据 按行查看 历史
Mark Liu 提交于 2021-05-23 18:56 . linux socket epoll
/**
* ClassName: socket_tcp_server
* Description: socket tcp server
* Author: Mark yunsheng.Liu
* Date: 2021/05/20
* Version: V1.0
* QQ:120772981
**/
#ifndef _SOCKET_TCP_SERVER_H_
#define _SOCKET_TCP_SERVER_H_
#include <stdio.h>
#include <netdb.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/epoll.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include "socket_epoll.h"
#define SERVER_PORT 8000
#define SERVER_CON_MAX_QUEUE 20
class socket_tcp_server {
private:
socket_epoll epoll;
public:
int init_server();
};
#endif
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/huuhlj/socket_epoll.git
git@gitee.com:huuhlj/socket_epoll.git
huuhlj
socket_epoll
linux_socket_epoll
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891