Logo
Explore Help
Register Sign In
cdo/waffle-mole
1
0
Fork 0
You've already forked waffle-mole
Code Issues Pull Requests Packages Projects Releases Wiki Activity
13 Commits 1 Branch 0 Tags
Commit Graph

13 Commits

This Branch
This Branch
All Branches
Author SHA1 Message Date
Camden Dixie O'Brien
a3cdde2c34 Construct full path of requested resource
Also detects .. in the selector string, as this could be used to see
files outside of srvroot, otherwise.
2022-10-14 10:27:02 +01:00
Camden Dixie O'Brien
f6871a7922 Remove trailing slash from srvroot, if present 2022-10-14 10:27:02 +01:00
Camden Dixie O'Brien
f171687fda Add test srvroot directory to .gitignore 2022-10-14 10:27:02 +01:00
Camden Dixie O'Brien
5c03ed950f Send srvroot listing for empty selector 2022-10-14 10:27:02 +01:00
Camden Dixie O'Brien
fa0dbed44c Write an empty response to clients 2022-10-14 10:27:02 +01:00
Camden Dixie O'Brien
1a13289da9 Improve error handling 2022-10-14 10:27:02 +01:00
Camden Dixie O'Brien
f7583f538e Read selector from client 2022-10-14 10:27:02 +01:00
Camden Dixie O'Brien
2ab4966773 Add explanatory comments above each major block in main.c 2022-10-13 12:52:27 +01:00
Camden Dixie O'Brien
88642c0c3f Make accept() error handling a little neater 2022-10-13 12:09:35 +01:00
Camden Dixie O'Brien
21de6cd3e7 Accept incoming connections inside main loop 2022-10-13 12:07:24 +01:00
Camden Dixie O'Brien
b39e263499 Initialize socket before main loop 2022-10-13 12:06:25 +01:00
Camden Dixie O'Brien
fffd1c3fff Add main loop and signal handler 2022-10-13 11:57:29 +01:00
Camden Dixie O'Brien
948c3971ee Create project structure 2022-10-12 15:24:21 +01:00
Powered by Gitea Version: 1.23.8 Page: 25ms Template: 5ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API