We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 16ee684 + bc9dfb5 commit 75b9a06Copy full SHA for 75b9a06
Makefile
@@ -1,7 +1,9 @@
1
-all: httpd
2
-
+all: httpd client
+LIBS = -lpthread #-lsocket
3
httpd: httpd.c
4
- gcc -W -Wall -lsocket -lpthread -o httpd httpd.c
+ gcc -g -W -Wall $(LIBS) -o $@ $<
5
6
+client: simpleclient.c
7
+ gcc -W -Wall -o $@ $<
8
clean:
9
rm httpd
README.md
@@ -1,4 +1,5 @@
A mirror for tinyhttpd
+测试CGI时需要本机安装PERL,同时安装perl-cgi
<p> 每个函数的作用:</p>
<p> accept_request: 处理从套接字上监听到的一个 HTTP 请求,在这里可以很大一部分地体现服务器处理请求流程。</p>
0 commit comments