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
cozis2023-11-01 21:33:49 +01:00
e6dbeafcd7
fixed a couple typos in the readme
cozis2023-10-31 21:41:44 +01:00
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
cozis2023-05-20 21:50:47 +02:00
ad65c26035
resolved some bug in the MUX
cozis2023-05-20 02:14:47 +02:00
6a4f644cc5
moved include/microtcp.h to src/microtcp.h and fixed some mux bugs
cozis2023-05-19 22:11:47 +02:00
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
cozis2023-05-19 20:24:13 +02:00
2a8741afe4
extended tcp checksum function to strings with an odd number of bytes
cozis2023-05-18 00:51:13 +02:00
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)
cozis2023-05-17 23:20:14 +02:00
df70d98661
cleanup of the TCP finite state machine
cozis2023-05-17 19:21:17 +02:00