Add MTU negotiation

This commit is contained in:
Adrien Gallouët
2016-09-23 15:11:42 +00:00
parent d5297b8a70
commit d255074199
2 changed files with 70 additions and 33 deletions

3
mud.h
View File

@@ -4,13 +4,14 @@
struct mud;
struct mud *mud_create (int, int, int, int);
struct mud *mud_create (int, int, int, int, int);
void mud_delete (struct mud *);
int mud_set_key (struct mud *, unsigned char *, size_t);
int mud_get_key (struct mud *, unsigned char *, size_t *);
int mud_get_fd (struct mud *);
int mud_get_mtu (struct mud *);
int mud_set_send_timeout_msec (struct mud *, unsigned);
int mud_set_time_tolerance_sec (struct mud *, unsigned);