All Projects → code4wt → toyhttpd

code4wt / toyhttpd

Licence: Apache-2.0 License
I/O 模型练手代码,分别使用阻塞式 I/O、select、poll 和 epoll 和 Java NIO 实现了简单的 HTTP Server

Programming Languages

HTML
75241 projects
java
68154 projects - #9 most used programming language
c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to toyhttpd

ev
Lightweight event-loop library based on multiplexing IO
Stars: ✭ 15 (-65.12%)
Mutual labels:  select, poll, epoll
xm2cloud term
powerful webssh that developed with django, channels, xterm,ioloop
Stars: ✭ 17 (-60.47%)
Mutual labels:  select, epoll
Nuclei
Proactive IO & Runtime system
Stars: ✭ 113 (+162.79%)
Mutual labels:  io, epoll
Zeus
A high performance, cross-platform Internet Communication Engine. Developed with native socket API. Aim at handling millions of concurrent connections.
Stars: ✭ 30 (-30.23%)
Mutual labels:  select, epoll
Lotos
tiny but high-performance HTTP Server
Stars: ✭ 140 (+225.58%)
Mutual labels:  http-server, epoll
Libhv
🔥 比libevent、libuv更易用的国产网络库。A c/c++ network library for developing TCP/UDP/SSL/HTTP/WebSocket client/server.
Stars: ✭ 3,355 (+7702.33%)
Mutual labels:  http-server, epoll
Libfiber
The high performance coroutine library for Linux/FreeBSD/MacOS/Windows, supporting select/poll/epoll/kqueue/iocp/windows GUI
Stars: ✭ 519 (+1106.98%)
Mutual labels:  select, epoll
Facebooc
Yet another Facebook clone written in C
Stars: ✭ 483 (+1023.26%)
Mutual labels:  http-server, epoll
fancy
High performance web server
Stars: ✭ 20 (-53.49%)
Mutual labels:  http-server, epoll
hev-task-system
A simple, lightweight multi-task system (coroutines) for Unix (Linux/BSD/macOS)
Stars: ✭ 41 (-4.65%)
Mutual labels:  io, epoll
Mgx
🌈 A high performance network framework written in c++ (support tcp and http)
Stars: ✭ 15 (-65.12%)
Mutual labels:  http-server, epoll
Envelop.c
🌊 Thread-less, event-loop based tiny http-server from scratch using epoll. Learning Purpose.
Stars: ✭ 75 (+74.42%)
Mutual labels:  http-server, epoll
Webcpp
用C++开发web服务器框架
Stars: ✭ 23 (-46.51%)
Mutual labels:  http-server, epoll
Mongols
C++ high performance networking with TCP/UDP/RESP/HTTP/WebSocket protocols
Stars: ✭ 250 (+481.4%)
Mutual labels:  http-server, epoll
Zaver
Yet another fast and efficient HTTP server
Stars: ✭ 673 (+1465.12%)
Mutual labels:  http-server, epoll
Tiginx
Tiginx is a Shanzhai Nginx project , please buyao use it xian , if meet problem , I no fuze ...
Stars: ✭ 29 (-32.56%)
Mutual labels:  select, epoll
Webserver
A C++ High Performance Web Server
Stars: ✭ 4,164 (+9583.72%)
Mutual labels:  http-server, epoll
WebServer
High-performance multi-threaded tcp network server in c++11
Stars: ✭ 58 (+34.88%)
Mutual labels:  http-server, epoll
tunnel
一款单线程、轻量级和高性能的内网穿透程序,支持TCP流量转发(支持所有TCP上层协议,包括HTTP,SSH等),支持多客户端同时连接
Stars: ✭ 39 (-9.3%)
Mutual labels:  select, epoll
epump
ePump是一个基于I/O事件通知、非阻塞通信、多路复用、多线程等机制开发的事件驱动模型的 C 语言应用开发框架,利用该框架可以很容易地开发出高性能、大并发连接的服务器程序。
Stars: ✭ 26 (-39.53%)
Mutual labels:  select, epoll

toyhttpd

1.简介

I/O 模型练手代码,分别使用阻塞式 I/O、select、poll 和 epoll 和 Java NIO 实现了简单的 HTTP Server。

本仓库对应于 Java NIO 系列文章,文章地址为http://www.coolblog.xyz/categories/foundation-of-java/NIO/

2.使用说明

2.1 C代码编译

C 代码可直接使用 make 命令编译,但因 epoll 相关接口是 Linux 系统特有的,所以应保证在 Linux 平台下编译。

2.2

Java 代码并未依赖第三方 Jar 包,所以可直接使用 javac 命令编译。

cd java
javac xyz/coolblog/httpd/TinyHttpd.java
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].