1
0
forked from aniani/gmnisrv
Commit Graph

14 Commits

Author SHA1 Message Date
Drew DeVault
6bc9c4deb9 Implement autoindex option 2020-09-26 15:51:28 -04:00
Drew DeVault
165e3c02fc Rehome some logic from server.c -> serve.c 2020-09-26 15:08:25 -04:00
Drew DeVault
48f75abcfd Bump client buffer size to BUFSIZ 2020-09-26 14:45:39 -04:00
Drew DeVault
9bed26b8d9 Log response body size in bytes 2020-09-26 14:41:17 -04:00
Drew DeVault
dfab99ace5 Serve files from root 2020-09-26 14:36:52 -04:00
Drew DeVault
0d6eca2c79 disconnect_client: clean up bios 2020-09-26 13:58:51 -04:00
Drew DeVault
ce467cebd3 Parse requests and serve simple responses 2020-09-26 13:39:37 -04:00
Drew DeVault
5388725d41 Use O_NONBLOCK for client file descriptors 2020-09-26 10:53:22 -04:00
Drew DeVault
fa69887e52 Implement TLS exchange with clients
This probably leaves a bit to be desired tbh
2020-09-24 19:58:41 -04:00
Drew DeVault
85a85b37f8 Log bind addresses on startup 2020-09-24 11:16:51 -04:00
Drew DeVault
b85c64b441 Generalize logging 2020-09-23 14:32:52 -04:00
Drew DeVault
da9db7bc46 Implement basic server event loop 2020-09-23 14:19:28 -04:00
Drew DeVault
f88d817dca Generalize IPV6_V6ONLY usage
Some platforms other than Linux may implement this socket option.
2020-09-23 12:44:42 -04:00
Drew DeVault
65c2a56c6d Initialize sockets 2020-09-23 12:43:05 -04:00