Skip to content

Commit 75b9a06

Browse files
committed
Merge pull request EZLippi#3 from ZiWee/master
warning的修正,以及几个小地方修改
2 parents 16ee684 + bc9dfb5 commit 75b9a06

File tree

4 files changed

+369
-358
lines changed

4 files changed

+369
-358
lines changed

Makefile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
all: httpd
2-
1+
all: httpd client
2+
LIBS = -lpthread #-lsocket
33
httpd: httpd.c
4-
gcc -W -Wall -lsocket -lpthread -o httpd httpd.c
4+
gcc -g -W -Wall $(LIBS) -o $@ $<
55

6+
client: simpleclient.c
7+
gcc -W -Wall -o $@ $<
68
clean:
79
rm httpd

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
A mirror for tinyhttpd
2+
测试CGI时需要本机安装PERL,同时安装perl-cgi
23

34
<p>&nbsp; &nbsp; &nbsp;每个函数的作用:</p>
45
<p>&nbsp; &nbsp; &nbsp;accept_request: &nbsp;处理从套接字上监听到的一个 HTTP 请求,在这里可以很大一部分地体现服务器处理请求流程。</p>

0 commit comments

Comments
 (0)