-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugfixes, extensions, and other minor updates
- Loading branch information
Showing
23 changed files
with
320 additions
and
154 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,2 +1,2 @@ | ||
# net77 | ||
A tiny networking library written in C for educational purposes. Has HTTP parsing/construction features, can sendAllData requests HTTP/1.0 style and has a helpers for hosting HTTP servers. Should in the future support https and http 2.0 | ||
A tiny networking library written in C for educational purposes. Has HTTP parsing/construction features, can send requests HTTP/1.0 style and has a helpers for hosting HTTP servers. Should in the future support https and http 2.0 |
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,12 +1,19 @@ | ||
- [X] HTTP 1.0 support | ||
- [X] basic TCP client/server implementation | ||
- [X] functions for basic HTTP 1.0 requests (can communicate with actual websites) | ||
- [ ] more flexible TCP server implementation | ||
- [X] more flexible TCP server implementation | ||
- [X] ErrStatus and SuccessStatus typedefs (they're ints) with macros ecIsErr, ecIsOk, scIsOk, scIsErr to encode whether 0 is no error and 1 is error or 1 is success and 0 no success... | ||
- [ ] Make everything more stable (some of the tests don't always pass if you run them 1000 times) | ||
- [ ] testServerBigData1 seems to sometimes fail if I turn up the size of the messages enough AND run it very often in a loop with no pause in between | ||
- [ ] the tests which make real requests to www.example.com seem to be unable to connect sometimes (but only if I run all the other tests as well....) | ||
- [ ] HTTP 1.1 support | ||
- [ ] HTTP 2.0 support | ||
- [ ] HTTP 3.0 support | ||
- [ ] Some utilities for hosting HTTP/S servers (i.e. a tcp server handler wrapper) | ||
- [ ] ALPN (application layer protocol negotiation) | ||
- [ ] TLS 1.2 support (custom TLS implementation) | ||
- [ ] TLS 1.3 support (custom TLS implementation) | ||
- [ ] TLS session resumption | ||
- [ ] HTTPS support | ||
- [ ] proper error codes (not just 0, 1, -1 but actual error enums) | ||
- [ ] proper error codes (not just 0, 1, -1 but actual error enums) | ||
- [ ] HTTP 3.0 support | ||
- [ ] QUIC support |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#ifndef NET77_ERROR_MANAGEMENT_H | ||
#define NET77_ERROR_MANAGEMENT_H | ||
|
||
typedef int ErrorStatus; | ||
typedef int SuccessStatus; | ||
|
||
#define errStatusIsOk(err_status) ((err_status) == 0) | ||
#define errStatusIsErr(err_status) ((err_status) != 0) | ||
#define successStatusIsOk(success_status) ((success_status) == 0) | ||
#define successStatusIsErr(success_status) ((success_status) != 0) | ||
|
||
#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
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
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
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
Oops, something went wrong.