This is a simple echo server written in C, based on epoll event handling, and supports non-blocking IO operations.
These instructions will help you install and run the project on your local machine for development and testing.
Make sure your system has the following software installed:
- GCC compiler
- GNU Make
Clone this repository to your local machine:
git clone https://github.com/xywml/echo_server.git
Navigate to the project directory:
cd echo_server
Build the project:
make
Start the server:
./echo_server [port]
Remove compiled files:
make clean
We welcome your contributions. Please discuss what you would like to change before submitting a pull request.
This project is licensed under the MIT License. See the LICENSE
file for details.
这是一个简单的回声服务器,使用 C 语言编写,基于 epoll 事件处理,支持非阻塞 IO 操作。
以下说明将帮助您在本地机器上安装和运行项目,进行开发和测试。
确保您的系统安装了以下软件:
- GCC 编译器
- GNU Make
克隆此仓库到本地机器:
git clone https://github.com/xywml/echo_server.git
进入项目目录:
cd echo_server
编译项目:
make
启动服务器:
./echo_server [port]
清除编译生成的文件:
make clean
欢迎您的贡献。请先讨论您想要更改的内容,然后提交拉取请求。
本项目遵循 MIT 许可。有关详细信息,请参阅 LICENSE
文件。