Add first draft backup

This commit is contained in:
Adrien Gallouët
2016-11-28 10:59:27 +00:00
parent 72d0573c95
commit 662fe83173
2 changed files with 47 additions and 12 deletions

7
mud.h
View File

@@ -7,17 +7,18 @@ struct mud;
struct mud *mud_create (int, int, int, int, int);
void mud_delete (struct mud *);
int mud_get_fd (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_mtu (struct mud *, int mtu);
int mud_get_mtu (struct mud *);
int mud_set_send_timeout_msec (struct mud *, unsigned);
int mud_set_time_tolerance_sec (struct mud *, unsigned);
int mud_peer (struct mud *, const char *, const char *, int);
int mud_peer (struct mud *, const char *, const char *, int, int);
int mud_recv (struct mud *, void *, size_t);
int mud_send (struct mud *, const void *, size_t, int);