Remove down_timeout
This commit is contained in:
12
mud.c
12
mud.c
@@ -52,10 +52,6 @@
|
||||
#define MUD_SEND_TIMEOUT (10*MUD_ONE_SEC)
|
||||
#endif
|
||||
|
||||
#ifndef MUD_DOWN_TIMEOUT
|
||||
#define MUD_DOWN_TIMEOUT (200*MUD_ONE_MSEC)
|
||||
#endif
|
||||
|
||||
#ifndef MUD_PING_TIMEOUT
|
||||
#define MUD_PING_TIMEOUT (100*MUD_ONE_MSEC)
|
||||
#endif
|
||||
@@ -125,7 +121,6 @@ struct crypto {
|
||||
struct mud {
|
||||
int fd;
|
||||
uint64_t send_timeout;
|
||||
uint64_t down_timeout;
|
||||
uint64_t time_tolerance;
|
||||
struct queue tx;
|
||||
struct queue rx;
|
||||
@@ -512,11 +507,6 @@ int mud_set_key (struct mud *mud, unsigned char *key, size_t size)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void mud_set_down_timeout_msec (struct mud *mud, unsigned msec)
|
||||
{
|
||||
mud->down_timeout = msec*MUD_ONE_MSEC;
|
||||
}
|
||||
|
||||
void mud_set_send_timeout_msec (struct mud *mud, unsigned msec)
|
||||
{
|
||||
mud->send_timeout = msec*MUD_ONE_MSEC;
|
||||
@@ -615,8 +605,6 @@ struct mud *mud_create (const char *port)
|
||||
}
|
||||
|
||||
mud->send_timeout = MUD_SEND_TIMEOUT;
|
||||
mud->down_timeout = MUD_DOWN_TIMEOUT;
|
||||
|
||||
mud->time_tolerance = MUD_TIME_TOLERANCE;
|
||||
|
||||
return mud;
|
||||
|
||||
1
mud.h
1
mud.h
@@ -10,7 +10,6 @@ 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_time_tolerance_sec (struct mud *, unsigned);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user