Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warning的修正,以及几个小地方修改 #3

Merged
merged 1 commit into from
Apr 12, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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