First draft on the new protocol

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
Adrien Gallouët
2019-12-15 19:30:13 +00:00
parent 407db114c6
commit c420e9494a
3 changed files with 101 additions and 113 deletions

2
test.c
View File

@@ -52,7 +52,7 @@ main(int argc, char **argv)
// ...from loopback at 1MBps (not 1Mbps)
if (mud_set_state(mud, (struct sockaddr *)&local,
MUD_UP, 1000 * 1000, 1000 * 1000)) {
MUD_UP, 1000 * 1000, 1000 * 1000, 0)) {
perror("mud_set_state");
return -1;
}