【求助】在linux下编写一个简单的http server
要求:(1)可以使用socket,也可以使用inetd/xinetd;
(2)基本功能,实现GET操作;
(3)代码结构清晰,注释明确
最好有地址
我的sundongwei333@163.com linux下开源的httpserver很多,自己找一下去 一定要自己编写么?linux下的太多了,也很方便配置~~所以我觉得自己去找一个就可以了 $ eix -C www-servers -c
www-servers/apache (2.2.9(2)@2008年06月17日): The Apache Web Server.
www-servers/axis (1.2_rc2-r3): Apache Axis SOAP implementation
www-servers/boa ((~)0.94.14_rc21): A very small and very fast http daemon.
www-servers/bozohttpd (20060517): bozohttpd is a small and secure http server
www-servers/cherokee (~0.7.2): An extremely fast and tiny web server.
www-servers/fnord (1.10-r1): Yet another small httpd.
www-servers/gorg (0.5): Back-end XSLT processor for an XML-based web site
www-servers/lighttpd (1.4.19-r2@2008年06月15日): Lightweight high-performance web server
www-servers/mini_httpd (1.19): Small forking webserver with optional ssl and ipv6 support
www-servers/mongrel (1.1.3): A small fast HTTP library and server that runs Rails, Camping, and Nitro apps
www-servers/mongrel_cluster (~1.0.5): Mongrel plugin that provides commands and Capistrano tasks for managing multiple Mongrel processes
www-servers/monkeyd (0.9.1): fast, efficient, (REALLY) small, and easy to configure web server
www-servers/nginx (0.6.29): Robust, small and high performance http and reverse proxy server
www-servers/ocsigen (~1.0.0): Ocaml-powered webserver and framework for dynamic web programming
www-servers/pound (2.3.2): A http/https reverse-proxy and load-balancer.
www-servers/publicfile (0.52-r1): publish files through FTP and HTTP
www-servers/resin (3.0.25): A fast Servlet 2.5 and JSP 2.0 engine.
www-servers/shttpd (~1.35): Small and embeddable HTTPD server with (optional) CGI support
www-servers/skunkweb (~3.4.4): robust Python web application server
www-servers/thin (~0.8.1): A fast and very simple Ruby web server
www-servers/thttpd (2.25b-r7): Small and fast multiplexing webserver.
www-servers/tomcat (6.0.16): Tomcat Servlet-2.5/JSP-2.1 Container
www-servers/tux (3.2.16-r1): kernel level httpd
www-servers/varnish (~1.1.2): Varnish is an HTTP accelerator
www-servers/webfs (1.21): Lightweight HTTP server for static content 可以利用libevent自己编写一个httpserver。实现非常简单google下应该能找到代码。 楼主难道是交作业? Posted by axlrose on 2008-7-6 19:47 http://www.ibmnb.com/images/common/back.gif
$ eix -C www-servers -c
www-servers/apache (2.2.9(2)@2008年06月17日): The Apache Web Server.
www-servers/axis (1.2_rc2-r3): Apache Axis SOAP implementation
www-servers/boa ((~)0.94.14 ...
自己写的吗? Posted by 酷毙新人类 on 2008-7-11 00:54 http://www.ibmnb.com/images/common/back.gif
自己写的吗?
你看这个像是代码吗。。 这不是我的毕业论文题目吗,我也想要啊
现在正在看《unix网络编程》 建议直接去下载thttpd源码,邪恶地抄抄改改吧:D :) :) :) :) 我这里有一个linux下面的。很简单,只有2个文件,数个函数。
页:
[1]