Add functions to set timeouts and time_tolerance

This commit is contained in:
angt
2016-04-05 14:09:34 +00:00
parent 104bc68266
commit ecec237a56
2 changed files with 27 additions and 2 deletions

5
mud.h
View File

@@ -10,6 +10,11 @@ void mud_delete (struct mud *);
int mud_set_key (struct mud *, unsigned char *, size_t);
int mud_get_fd (struct mud *);
void mud_set_down_timeout_msec (struct mud *, unsigned);
void mud_set_send_timeout_msec (struct mud *, unsigned);
void mud_set_pong_timeout_msec (struct mud *, unsigned);
void mud_set_time_tolerance_sec (struct mud *, unsigned);
int mud_bind (struct mud *, const char *);
int mud_peer (struct mud *, const char *, const char *);