Commit Graph
29 Commits
Author SHA1 Message Date
cozis c3f4a52b6d simpler socket api. Now the blocking of functions and error codes aren't function parameters but attributes of the socket object with their respective getters and setters 2023-11-01 21:33:49 +01:00
cozis e6dbeafcd7 fixed a couple typos in the readme 2023-10-31 21:41:44 +01:00
cozis 061a761b4f deleted compilation artifacts 2023-10-31 21:39:25 +01:00
cozis 5b986a6537 gitignore update 2023-10-31 16:12:41 +01:00
cozis b495e53891 new makefile 2023-10-31 16:09:51 +01:00
cozis 7033e1ea85 rewrote the readme and cleaned up unused files 2023-10-31 13:06:04 +01:00
cozis 733597b6aa general cleanups 2023-10-29 22:38:14 +01:00
cozis 5f3f7dc66d refactoring of tcp 2023-08-31 13:29:56 +02:00
cozis 3489f62140 tcp refactoring 2023-08-29 14:22:52 +02:00
cozis 91f2526f15 added rtt and rtt deviation calculation for the tcp layer 2023-08-29 12:56:23 +02:00
cozis 6bfb514df7 fixed i forgot about but seem to work 2023-08-29 01:10:02 +02:00
cozis 59e6238348 fixed a bug. tcp_listener_create was called incorrectly by microtcp_open 2023-05-22 23:57:34 +02:00
cozis 04ce79bcf0 new TCP timer object; solved a bunch of warnings; completely implemented the TCP termination sequence 2023-05-21 21:56:21 +02:00
cozis 96ca7ae2c9 better closing TCP sequence; removed some debug logs 2023-05-21 13:29:58 +02:00
cozis a272e8601e the TAP IP was the same as the microtcp instance, which wasn't right. Now the TAP is at 10.0.0.5 and the TCP at 10.0.0.4; fixed some bugs in the TCP state machine and made it so it always ACKs; fixed TCP checksum calculation 2023-05-20 21:50:47 +02:00
cozis ad65c26035 resolved some bug in the MUX 2023-05-20 02:14:47 +02:00
cozis 6a4f644cc5 moved include/microtcp.h to src/microtcp.h and fixed some mux bugs 2023-05-19 22:11:47 +02:00
cozis 464a1ee724 new I/O multiplexer api; http echo server example draft to test the mux api; the library is now released as an amalgamation; recv/send now return the error MICROTCP_ERRCODE_WOULDBLOCK in a similar way to the BSD socket api; moved tests/loop2.c to examples/echo_tcp.c 2023-05-19 20:24:13 +02:00
cozis 2a8741afe4 extended tcp checksum function to strings with an odd number of bytes 2023-05-18 00:51:13 +02:00
cozis 4de61f7cc7 a bunch of bug fixes (changed a bunch of cpu_to_net_u32 that should have been cpu_to_net_u16 and dropped the use of the __BYTE_ORDER__ symbol that no one was defining) 2023-05-17 23:20:14 +02:00
cozis df70d98661 cleanup of the TCP finite state machine 2023-05-17 19:21:17 +02:00
cozis a5b5cf4567 added useful log messages 2023-05-17 12:10:43 +02:00
cozis b63fb7df6c Bug fix in ip parser. The result wasn't converted to network byte order 2023-05-16 12:02:25 +02:00
cozis b259bb74db ported to windows 2023-05-16 00:21:04 +02:00
Francesco Cozzuto 43ee04a2db wip 2023-04-21 09:46:44 +02:00
Francesco Cozzuto 092ba2d1ad better TCP and started using libtuntap 2023-03-25 20:18:14 +01:00
Francesco Cozzuto 57c2f61ea3 fixed bug in the README's code snippet 2023-03-20 14:50:49 +01:00
Francesco Cozzuto b1b235a09f new readme 2023-03-20 14:47:24 +01:00
Francesco Cozzuto 00e68532d1 first commit 2023-03-20 09:43:11 +01:00