Commit graph

18 commits

Author SHA1 Message Date
Nick Krichevsky 42b43003aa Fix memory issues 2018-09-09 20:54:19 -04:00
Nick Krichevsky d25c063a04 Listen on all addresses 2018-09-09 19:59:07 -04:00
Nick Krichevsky 5cca544e59 Add errno print on server failure 2018-09-09 19:51:51 -04:00
Nick Krichevsky 28700e2e63 Minor formatting fix 2018-09-09 19:47:21 -04:00
Nick Krichevsky 0a7300402e Send files on request 2018-09-09 19:46:31 -04:00
Nick Krichevsky ca7c7e9557 Fix buffering issues in send_headers 2018-09-09 19:46:12 -04:00
Nick Krichevsky e9e8bb8175 Fix errors with indexing in status codes 2018-09-09 19:45:40 -04:00
Nick Krichevsky f780b69793 Move status code arrays into c files 2018-09-09 17:37:59 -04:00
Nick Krichevsky 4200b4a6d6 Add status code files to server 2018-09-09 15:52:38 -04:00
Nick Krichevsky 2733153826 Change demo status line message to not use : lol 2018-09-09 14:52:39 -04:00
Nick Krichevsky 0330ff80ff Refactor get_file_from_url to use stat 2018-09-09 14:52:27 -04:00
Nick Krichevsky dcc1ca1a2a Implement get_file_from_url 2018-09-09 14:48:48 -04:00
Nick Krichevsky cf1d164ec5 Rename socket_read_result to socket_result 2018-09-09 00:18:56 -04:00
Nick Krichevsky 5de4fd071e Implement parse_request_line 2018-09-08 23:53:54 -04:00
Nick Krichevsky 16668c0707 Add strcpy_no_crlf 2018-09-08 22:53:45 -04:00
Nick Krichevsky 262a1bd212 Add very basic server 2018-09-08 17:26:34 -04:00
Nick Krichevsky cc014425c4 Add setup function to server/socket_server 2018-09-08 15:56:17 -04:00
Nick Krichevsky 5e4275ac5b Add basic server argparsing 2018-09-03 19:16:02 -04:00