Skip to content

Commit

Permalink
Merge pull request EZLippi#3 from ZiWee/master
Browse files Browse the repository at this point in the history
warning的修正,以及几个小地方修改
  • Loading branch information
EZLippi committed Apr 12, 2016
2 parents 16ee684 + bc9dfb5 commit 75b9a06
Show file tree
Hide file tree
Showing 4 changed files with 369 additions and 358 deletions.
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
all: httpd

all: httpd client
LIBS = -lpthread #-lsocket
httpd: httpd.c
gcc -W -Wall -lsocket -lpthread -o httpd httpd.c
gcc -g -W -Wall $(LIBS) -o $@ $<

client: simpleclient.c
gcc -W -Wall -o $@ $<
clean:
rm httpd
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
A mirror for tinyhttpd
测试CGI时需要本机安装PERL,同时安装perl-cgi

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

0 comments on commit 75b9a06

Please sign in to comment.