Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
48 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,13 @@ | ||
it's a project authored by Yuhang GE and me. | ||
HOWTO BUILD: | ||
Actually, there are two versions of this project, one for xinetd and the other for itself. | ||
XINETD: | ||
make xinetd | ||
Individual: | ||
make | ||
You should config it so that it can run via xinetd. For the XINETD version, an extra arg | ||
of root directory should be provided. And when it comes to Individual Version, two extra | ||
args -- port and root directory should be provided. | ||
|
||
|
||
AUTHOR: | ||
It's a project authored by Yuhang GE and me. And it is released under the GPL v3 License. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#ifndef _SERVER_H | ||
#define _SERVER_H | ||
|
||
int static_serve(char * rootdir); | ||
int serve(char * rootdir); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#ifndef _RESOLVER_H | ||
#define _RESOLVER_H | ||
|
||
int resolve(char * req, char * url, char * ext, char * params); | ||
int resolve(char * url, char * ext, char * params); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters